mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
9c8799610f
* Adds the send_once command and message type, which allows a user to request a variable to be sent immediately and only once (intended to replace the var_add, var_send, var_clear idiom that is commonly used for this purpose) * Minor refactoring of variable server internals to reduce repeated code * Adds SIM_test_varserv to integration test to test basic variable server functionality * Changes graphics client for SIM_billiards to use var_send_once as an example of intended use * Add documentation for var_send_once in docs and tutorial * Set exit_code_enabled in trick unit tests to be true by default * Patch for failing bookworm build
38 lines
902 B
Plaintext
38 lines
902 B
Plaintext
/**************************TRICK HEADER***********************
|
|
PURPOSE: ( S_define )
|
|
LIBRARY DEPENDENCIES:
|
|
(
|
|
(varserv/src/VS.cpp)
|
|
(varserv/src/VS_init.cpp)
|
|
(varserv/src/VS_default_data.cpp)
|
|
(varserv/src/VS_commands.cpp)
|
|
(varserv/src/VS_tests.cpp)
|
|
(varserv/src/VS_shutdown.cpp)
|
|
)
|
|
*************************************************************/
|
|
|
|
#include "sim_objects/default_trick_sys.sm"
|
|
|
|
##include "varserv/include/VS.hh"
|
|
|
|
class testSimObject : public Trick::SimObject {
|
|
public:
|
|
VSTest vst;
|
|
|
|
testSimObject() {
|
|
("default_data") vst.default_vars();
|
|
("initialization") vst.init();
|
|
("initialization") vst.testAddRemove();
|
|
("initialization") vst.testUnits();
|
|
("initialization") vst.testExists();
|
|
("initialization") vst.testPause();
|
|
("initialization") vst.testSendOnce();
|
|
("shutdown") vst.shutdown();
|
|
}
|
|
};
|
|
|
|
// Instantiations
|
|
testSimObject vsx;
|
|
|
|
|