Class CVSSVDCodingTX#
Defined in File vss_vd_codingtx.h
Inheritance Relationships#
Base Types#
public CCodeGeneratorBase
(Class CCodeGeneratorBase)private CVSSHelper
(Class CVSSHelper)
Class Documentation#
-
class CVSSVDCodingTX : public CCodeGeneratorBase, private CVSSHelper#
VSS code generator coding class. Creates the code out of templates.
Public Functions
-
inline CVSSVDCodingTX(const std::string &rsPrefix)#
Constructor.
- Parameters:
rsPrefix – [in] used by cmake library and signal definition in signal_identifier.h file
-
std::string Code_VD_TXIDLList(const std::vector<std::string> &vssParts, const std::vector<SFunctionVDDefinition> &vecFunctions) const#
create vehicle device content for the IDL file of a TX signal
- Parameters:
vssParts – [in] Interface in vss style separated in parts
vecFunctions – [in] container of all functions of a single vss definition
- Returns:
content of the vehicle device part of a IDL Interface of a TX signal
-
void GetKeyWordMap(const SSignalVDDefinition &signal, CKeywordMap &mapKeywords) const#
fill the KeyWordMap with all required strings
- Parameters:
signal – [in] signal definition structure to fill the KeyWordMap
mapKeywords – [in] KeyWordMap to be filled
Protected Functions
-
std::string Code_VD_TXIncludes(const std::string &vssOriginalNoDot) const#
create single or multiple lines containing include files
- Parameters:
vssOriginalNoDot – [in] vss string without points e.g. VehicleChassisSteeringWheelAngle
- Returns:
content of a single interface
-
std::string Code_VD_TXInterface(const std::string &functionName, const std::string &vssWithColons) const#
create a single line containing a interface for vehicle device
- Parameters:
functionName – [in] function which is part of the interface
vssWithColons – [in] vss string (complete version) with colons as separator
- Returns:
content of a single interface
-
std::string Code_VD_TXInterfaceEntry(const std::string &functionName, const std::string &vssWithColons) const#
create a single line containing a interface entry for vehicle device
- Parameters:
functionName – [in] function which is part of the interface
vssWithColons – [in] vss string (complete version) with colons as separator
- Returns:
content of a single interface entry
-
std::string Code_VD_TXIDLInterface(const std::string &spaces, const SFunctionVDDefinition &function) const#
create list of interfaces (TX signals) for IDL file (Vehicle Device)
- Parameters:
spaces – [in] string containing only space characters for aligning
function – [in] function definition structure
- Returns:
content of a single interface entry
-
std::string Code_VD_TXFunction(const SFunctionVDDefinition &function) const#
create function definition part (TX signals) for vehicle device
- Parameters:
function – [in] function definition structure
- Returns:
content of a single function declaration
-
std::string Code_VD_TXResetSignal(const SFunctionVDDefinition &function) const#
Rest signal (TX signals) for vehicle device cpp file.
- Parameters:
function – [in] function definition structure
- Returns:
content of a single signal reset implementation
-
std::string Code_VD_TXFunctionImplementation(const SFunctionVDDefinition &function, const std::string &className) const#
create function implementation part (TX signals) for vehicle device cpp file
- Parameters:
function – [in] function definition structure
className – [in] class name of the signal
- Returns:
content of a single function implementation
-
std::string Code_VD_TXVariable(const std::string &signalName) const#
create single variable definition (TX signals) for vehicle device header
- Parameters:
signalName – [in] name of the signal
- Returns:
content of a single variable definition
-
std::string Code_VD_TXVariableInitialization(const SFunctionVDDefinition &function) const#
create single variable initialization (TX signals) for vehicle device cpp file
- Parameters:
function – [in] which is part of the interface
- Returns:
content of a single variable initialization
-
std::string Code_VD_TXVariableCheckInitialization(const std::vector<SFunctionVDDefinition> &vecFunctions) const#
create check if all interfaces are valid (TX signals) for vehicle device cpp file
- Parameters:
vecFunctions – [in] container of all functions of a single vss definition
- Returns:
content to check if all interfaces are valid
Protected Attributes
-
std::string m_ssPrefix#
prefix, used by cmake library and signal definition in signal_identifier.h file.
-
inline CVSSVDCodingTX(const std::string &rsPrefix)#