2015-02-26 15:02:31 +00:00
|
|
|
|
2015-03-23 21:03:14 +00:00
|
|
|
#ifndef STL_MANAGER_HH
|
|
|
|
#define STL_MANAGER_HH
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "sim_services/STL/include/STLInterface.hh"
|
|
|
|
|
|
|
|
namespace Trick {
|
|
|
|
|
|
|
|
class STLManager {
|
|
|
|
public:
|
|
|
|
STLManager() ;
|
|
|
|
virtual ~STLManager() ;
|
|
|
|
|
|
|
|
static STLManager * getSTLManager() ;
|
|
|
|
|
|
|
|
void checkpoint() ;
|
|
|
|
void post_checkpoint() ;
|
|
|
|
void restart() ;
|
|
|
|
|
|
|
|
unsigned int addSTL( STLInterface & stlIn ) ;
|
|
|
|
void removeSTL( STLInterface & stlIn ) ;
|
|
|
|
|
|
|
|
private:
|
|
|
|
//TODO: This needs to be a set, not a vector
|
|
|
|
std::vector<STLInterface *> stlObjects ;
|
|
|
|
unsigned int count ;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} ;
|
|
|
|
|
|
|
|
#endif
|