mirror of
https://github.com/nasa/trick.git
synced 2025-06-16 06:08:17 +00:00
Suppress units conversion messages in input file. #414
Added a routine to shoot_the_units_conversion_messenger.
This commit is contained in:
@ -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() ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user