Class CVSSBSCodingTX#
Defined in File vss_bs_codingtx.h
Inheritance Relationships#
Base Types#
public CCodeGeneratorBase
(Class CCodeGeneratorBase)private CVSSHelper
(Class CVSSHelper)
Class Documentation#
-
class CVSSBSCodingTX : public CCodeGeneratorBase, private CVSSHelper#
VSS code generator coding class. Beside the definition of the basic service interface also information about the vehicle device is necessary These 2 definitions must match, there must be a corresponding ‘signalVD’ definition the function container of the basic service signal must match the function container if the ‘signalVD’ Creates the code out of templates.
Public Functions
-
std::string Code_BS_TXIDLList(const std::vector<std::string> &vssParts, const std::vector<SFunctionBSDefinition> &vecFunctions) const#
create basic service 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 (basic service) vss definition (basic service)
- Returns:
content of the basic service part of a IDL Interface of a TX signal
-
void GetKeyWordMap(const SSignalBSDefinition &signal, const SSignalVDDefinition &signalVD, CKeywordMap &mapKeywords) const#
fill the KeyWordMap with all required strings
- Parameters:
signal – [in] signal definition structure to fill the KeyWordMap
signalVD – [in] signal definition structure from vehicle device
mapKeywords – [in] KeyWordMap to be filled
Protected Functions
-
std::string Code_BS_TXIncludes(const std::string &vd_vssOriginalNoDot, const std::string &vssOriginalNoDot) const#
create single or multiple lines containing include files
- Parameters:
vd_vssOriginalNoDot – [in] vss string without points of the corresponding vehicle device
vssOriginalNoDot – [in] vss string without points e.g. VehicleChassisSteeringWheelAngle
- Returns:
content of a single interface
-
std::string Code_BS_TXInterface(const std::string &functionName, const std::string &vssWithColons) const#
create a single line containing a interface for basic service
- 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_BS_TXInterfaceEntry(const std::string &functionName, const std::string &vssWithColons) const#
create a single line containing a interface entry for basic service
- 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_BS_TXIDLInterface(const std::string &spaces, const SFunctionBSDefinition &function) const#
create list of interfaces (TX signals) for IDL file (Basic Service)
- 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_BS_TXFunction(const SFunctionBSDefinition &function) const#
create function definition part (TX signals) for basic service
- Parameters:
function – [in] function definition structure
- Returns:
content of a single function declaration
-
std::string Code_BS_TXVariablePointerFromVD(const SFunctionVDDefinition &functionVD, const std::string &vd_vssWithColons) const#
create definition of a interface pointer (TX signals) for basic service header file
- Parameters:
functionVD – [in] which is part of the interface (Vehicle Device)
vd_vssWithColons – [in] vss string (complete version) with colons as separator (Vehicle Device)
- Returns:
content of a definition of a interface pointer
-
std::string Code_BS_TXFunctionPointerImplementationFromVD(const SFunctionBSDefinition &function, const SFunctionVDDefinition &functionVD, const std::string &className) const#
create function pointer implementation part (TX signals) for basic service cpp file
- Parameters:
function – [in] function definition structure (Basic Service)
functionVD – [in] function definition structure from vehicle device (Vehicle Device)
className – [in] class name of the signal (Basic Service)
- Returns:
content of a single function pointer implementation
-
std::string Code_BS_TXVariablePointerInitializationFromVD(const SFunctionVDDefinition &functionVD, const std::string &className, const std::string &vssOriginal, const std::string &vd_vssWithColons) const#
create check if a interface pointer is valid (TX signals) for IDL file
- Parameters:
functionVD – [in] which is part of the interface (Vehicle Device)
className – [in] class name of the signal (Basic Service)
vssOriginal – [in] original vvs string (Basic Service)
vd_vssWithColons – [in] vss string (complete version) with colons as separator (Vehicle Device)
- Returns:
content of a check if a interface pointer is valid
-
std::string Code_BS_TXIDLList(const std::vector<std::string> &vssParts, const std::vector<SFunctionBSDefinition> &vecFunctions) const#