C++ Module: autoCppModule

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.

autoCppModule module input and output messages

Module I/O Messages

Msg Variable Name

Msg Type

Description

someInMsg

AttRefMsgPayload

Input message description.

some2InMsg

AttRefMsgPayload

Input message description.

anotherInMsg

CSSConfigMsgPayload

Input message description.

anotherCppInMsg

CSSConfigLogMsgPayload

Input message description.

some2OutMsg

AttRefMsgPayload

Output message description.

someOutMsg

SCStatesMsgPayload

Output message description.

anotherCppOutMsg

DataStorageStatusMsgPayload

Output message description.


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

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 connect.

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<AttRefMsgPayload> someInMsg

Input message description.

ReadFunctor<AttRefMsgPayload> some2InMsg

Input message description.

ReadFunctor<CSSConfigMsgPayload> anotherInMsg

Input message description.

ReadFunctor<CSSConfigLogMsgPayload> anotherCppInMsg

Input message description.

Message<AttRefMsgPayload> some2OutMsg

Output message description.

Message<SCStatesMsgPayload> someOutMsg

Output message description.

Message<DataStorageStatusMsgPayload> anotherCppOutMsg

Output message description.

BSKLogger bskLogger

BSK Logging.

Private Members

double varDouble

[units] variable description

int varInt

[units] variable description