Suppress units conversion messages in input file. #414

Added a routine to shoot_the_units_conversion_messenger.
This commit is contained in:
Alex Lin
2017-04-20 11:34:50 -05:00
parent b2ebe157ed
commit dce161ad94
3 changed files with 48 additions and 5 deletions

View File

@ -25,8 +25,7 @@
Trick::IPPython * the_pip ;
//Constructor
Trick::IPPython::IPPython() : Trick::InputProcessor::InputProcessor() {
Trick::IPPython::IPPython() : Trick::InputProcessor::InputProcessor() , units_conversion_msgs(true) {
the_pip = this ;
return ;
}
@ -67,6 +66,14 @@ void Trick::IPPython::get_TMM_named_variables() {
}
}
bool Trick::IPPython::get_units_conversion_msgs() {
return units_conversion_msgs ;
}
void Trick::IPPython::shoot_the_units_conversion_messenger(bool onoff) {
units_conversion_msgs = !onoff ;
}
//Initialize and run the Python input processor on the user input file.
int Trick::IPPython::init() {
/** @par Detailed Design: */
@ -193,3 +200,14 @@ int Trick::IPPython::shutdown() {
return(0) ;
}
void shoot_the_units_conversion_messenger() {
the_pip->shoot_the_units_conversion_messenger(true) ;
}
void revive_the_units_conversion_messenger() {
the_pip->shoot_the_units_conversion_messenger(false) ;
}
int check_units_conversion_messenger_for_signs_of_life() {
return the_pip->get_units_conversion_msgs() ;
}