mirror of
https://github.com/nasa/trick.git
synced 2025-06-14 13:18:21 +00:00
Add methods in base SimObject to turn whole sim object on/off.
Added enable/disable methods to the SimObject base class. Used enable/disable to be consistent with the JobData class that already had these defined. fixes #103
This commit is contained in:
@ -99,3 +99,17 @@ Trick::JobData * Trick::SimObject::get_job( std::string job_name, unsigned int j
|
||||
return NULL ;
|
||||
}
|
||||
|
||||
void Trick::SimObject::enable() {
|
||||
std::vector <Trick::JobData *>::iterator it ;
|
||||
for ( it = jobs.begin() ; it != jobs.end() ; it++ ) {
|
||||
(*it)->enable() ;
|
||||
}
|
||||
}
|
||||
|
||||
void Trick::SimObject::disable() {
|
||||
std::vector <Trick::JobData *>::iterator it ;
|
||||
for ( it = jobs.begin() ; it != jobs.end() ; it++ ) {
|
||||
(*it)->disable() ;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user