Class CVSSBSCodingRX#
Defined in File vss_bs_codingrx.h
Inheritance Relationships#
Base Types#
public CCodeGeneratorBase
(Class CCodeGeneratorBase)private CVSSHelper
(Class CVSSHelper)
Class Documentation#
-
class CVSSBSCodingRX : 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_RXIDLServiceList(const std::vector<std::string> &vssParts, const std::vector<SFunctionBSDefinition> &vecFunctions) const#
create service content for the IDL file of a RX 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 Device part of a IDL Interface of a RX 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_RXIncludes(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_BS_RXInterface(const std::string &functionName, const std::string &vssWithColons, const std::string &vd_functionName, const std::string &vd_vssWithColons) const#
create a single line containing a interface
- Parameters:
functionName – [in] function which is part of the interface
vssWithColons – [in] vss string (complete version) with colons as separator
vd_functionName – [in] function name (Vehicle Device)
vd_vssWithColons – [in] vss string (complete version) with colons as separator (Vehicle Device)
- Returns:
content of a single interface
-
std::string Code_BS_RXInterfaceEntry(const std::string &functionName, const std::string &vssWithColons) const#
create a single line containing a interface entry
- Parameters:
functionName – [in] function which is part of the interface
vssWithColons – [in] vss string (short version) with colons as separator
- Returns:
content of a single interface entry
-
std::string Code_BS_RXReAndUnregisterEvent(const std::string &vssWithColons, const SFunctionBSDefinition &function, const SFunctionVDDefinition &functionVD) const#
Get the register and unregister part for the RX VD header.
- Parameters:
vssWithColons – [in] vss string with colons as separator
function – [in] function definition structure (Basic Service)
functionVD – [in] function definition structure of vehicle device (Vehicle Device)
- Returns:
content of a single register and unregister part.
-
std::string Code_BS_RXPrivateHeaderPart(const SFunctionBSDefinition &function, const std::string &vssWithColons) const#
Get the private header part of the basic service header.
- Parameters:
function – [in] function definition structure
vssWithColons – [in] vss string with colons as separator
- Returns:
content of private header part of the basic service header
-
std::string Code_RXIDLServiceInterface(const std::string &spaces, const std::string &vssWithColons, const SFunctionBSDefinition &function) const#
create service content for the IDL file of a RX signal
- Parameters:
spaces – [in] string containing only space characters for aligning
vssWithColons – [in] vss string (complete version) with colons as separator
function – [in] function definition structure
- Returns:
content of the Device part of a IDL Interface of a RX signal
-
std::string Code_BS_RXConstructor(const SSignalVDDefinition &signalVD, const std::string &vd_vssWithColons, const SFunctionVDDefinition &functionVD, const SFunctionBSDefinition &function) const#
unregister signal Event
- Parameters:
signalVD – [in] signal definition structure to fill the KeyWordMap (Vehicle Device)
vd_vssWithColons – [in] vss string (complete version) with colons as separator (Vehicle Device)
functionVD – [in] function definition structure (Vehicle Device)
function – [in] function definition structure (Basic Service)
- Returns:
content of a unregister code
-
std::string Code_BS_RXDestructor(const SSignalVDDefinition &signalVD, const std::string &vd_vssWithColons, const SFunctionVDDefinition &functionVD) const#
unregister signal Event
- Parameters:
signalVD – [in] signal definition structure to fill the KeyWordMap (Vehicle Device)
vd_vssWithColons – [in] vss string (complete version) with colons as separator (Vehicle Device)
functionVD – [in] function definition structure (Vehicle Device)
- Returns:
content of a unregister code
-
std::string Code_BS_RXGetAndSetFunctions(const std::string &class_name, const SFunctionBSDefinition &function, const SFunctionVDDefinition &functionVD) const#
set and get functions for basic service
- Parameters:
class_name – [in] class name which is part of the interface (Basic Service)
function – [in] function definition structure (Basic Service)
functionVD – [in] function definition structure (Vehicle Device)
- Returns:
content of a single set and get function code
-
std::string Code_BS_RXRegister(const std::string &class_name, const SFunctionBSDefinition &function, const std::string &vssWithColons) const#
create register/unregister code for basic service
- Parameters:
class_name – [in] class name which is part of the interface
function – [in] function definition structure
vssWithColons – [in] vss string with colons as separator
- Returns:
content of a single signal register/unregister code
-
std::string Code_RXIDLServiceList(const std::vector<std::string> &vssParts, const std::vector<SFunctionBSDefinition> &vecFunctions) const#