Post · 3 min read· pp. 339–341

C++ Module: autoCppModule 

C++ Module: autoCppModule

Auxiliary Files

Executive Summary

This is an auto-created sample C++ module. The description is included with the module class definition

Message Connection Descriptions

The following diagram and table list all the module input and output messages. The module message connection is set by the user from Python. The message type contains a link to the message structure definition, while the description provides information on what this message is used for.

▶ Embedded content: https://avslab.github.io/basilisk/_images/graphviz-bb753ac8b583f071d69e2c553e006f199ac8be5a.svg

Module I/O Messages

Msg Variable NameMsg TypeDescription
someInMsgAttRefMsgPayloadInput message description.
some2InMsgAttRefMsgPayloadInput message description.
anotherInMsgCSSConfigMsgPayloadInput message description.
anotherCppInMsgCSSConfigLogMsgPayloadInput message description.
some2OutMsgAttRefMsgPayloadOutput message description.
someOutMsgSCStatesMsgPayloadOutput message description.
anotherCppOutMsgDataStorageStatusMsgPayloadOutput message description.

class AutoCppModule : public SysModel : #include <autoCppModule.h>

code
This is an auto-created sample C++ module. The description is included with the module class definition.

Public Functions

AutoCppModule()
:   This is the constructor for the module class. It sets default variable values and initializes the various parts of the model

~AutoCppModule() = default

void Reset(uint64\_t CurrentSimNanos)
:   This method is used to reset the module and checks that required input messages are connected.

void UpdateState(uint64\_t CurrentSimNanos)
:   This is the main method that gets called every time the module is updated. Provide an appropriate description.

void setVarDouble(double)
:   setter for `varDouble` property

inline double getVarDouble() const
:   getter for `varDouble` property

void setVarInt(int)
:   setter for `varInt` property

inline int getVarInt() const
:   getter for `varInt` property

Public Members

[ReadFunctor](https://avslab.github.io/basilisk/Documentation/architecture/messaging/messaging.html#_CPPv4I0E11ReadFunctor)<[AttRefMsgPayload](https://avslab.github.io/basilisk/Documentation/architecture/msgPayloadDefC/AttRefMsgPayload.html#_CPPv416AttRefMsgPayload)> someInMsg
:   Input message description.

[ReadFunctor](https://avslab.github.io/basilisk/Documentation/architecture/messaging/messaging.html#_CPPv4I0E11ReadFunctor)<[AttRefMsgPayload](https://avslab.github.io/basilisk/Documentation/architecture/msgPayloadDefC/AttRefMsgPayload.html#_CPPv416AttRefMsgPayload)> some2InMsg
:   Input message description.

[ReadFunctor](https://avslab.github.io/basilisk/Documentation/architecture/messaging/messaging.html#_CPPv4I0E11ReadFunctor)<[CSSConfigMsgPayload](https://avslab.github.io/basilisk/Documentation/architecture/msgPayloadDefC/CSSConfigMsgPayload.html#_CPPv419CSSConfigMsgPayload)> anotherInMsg
:   Input message description.

[ReadFunctor](https://avslab.github.io/basilisk/Documentation/architecture/messaging/messaging.html#_CPPv4I0E11ReadFunctor)<[CSSConfigLogMsgPayload](https://avslab.github.io/basilisk/Documentation/architecture/msgPayloadDefCpp/CSSConfigLogMsgPayload.html#_CPPv422CSSConfigLogMsgPayload)> anotherCppInMsg
:   Input message description.

[Message](https://avslab.github.io/basilisk/Documentation/architecture/messaging/messaging.html#_CPPv4I0E7Message)<[AttRefMsgPayload](https://avslab.github.io/basilisk/Documentation/architecture/msgPayloadDefC/AttRefMsgPayload.html#_CPPv416AttRefMsgPayload)> some2OutMsg
:   Output message description.

[Message](https://avslab.github.io/basilisk/Documentation/architecture/messaging/messaging.html#_CPPv4I0E7Message)<[SCStatesMsgPayload](https://avslab.github.io/basilisk/Documentation/architecture/msgPayloadDefC/SCStatesMsgPayload.html#_CPPv418SCStatesMsgPayload)> someOutMsg
:   Output message description.

[Message](https://avslab.github.io/basilisk/Documentation/architecture/messaging/messaging.html#_CPPv4I0E7Message)<[DataStorageStatusMsgPayload](https://avslab.github.io/basilisk/Documentation/architecture/msgPayloadDefCpp/DataStorageStatusMsgPayload.html#_CPPv427DataStorageStatusMsgPayload)> anotherCppOutMsg
:   Output message description.

BSKLogger bskLogger
:   BSK Logging.

Private Members

double varDouble
:   [units] variable description

int varInt
:   [units] variable description