// register_trffit_types.cpp #include "register_trffit_types.h" #include #include "objstream/ObjTable.hpp" #include "AddFitKalman.h" #include "AddFitStarter.h" #include "FullFitKalman.h" #include "AddFitNothing.h" #include "Refitter.h" using std::vector; bool trf::register_trffit_types() { // Create vector holding the status for each registration. vector stats; // Register types. ObjTable::Status stat; stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); // Check each registration. for ( vector::const_iterator istat=stats.begin(); istat!=stats.end(); ++istat ) { assert( *istat == ObjTable::OK ); if ( *istat != ObjTable::OK ) abort(); } return true; }