![]() |
|
PhoenixGenerator
2.0.4
Set of tools to generate code
|
#include "WrapperTraitDataStream.h"
Include dependency graph for WrapperTraitDataStream.cpp:Go to the source code of this file.
Functions | |
| void | data_stream_trait_wrapper_callAttributeCheck (std::ofstream &fs, const PString &className, const PClassAttribute &attr, const PString &moduleName, const PString &expectedType) |
| Do the check call of an attribute of a given class. | |
| void | data_stream_trait_wrapper_classAttributeFromMessage (std::ofstream &fs, const PString &className, const PClassAttribute &attr) |
| Do the implementation of from message of one attribute. | |
| void | data_stream_trait_wrapper_classAttributeGetSize (std::ofstream &fs, const PString &className, const PClassAttribute &attr) |
| Do the implementation of get size of one attribute. | |
| void | data_stream_trait_wrapper_classAttributeToMessage (std::ofstream &fs, const PString &className, const PClassAttribute &attr) |
| Do the implementation of to message of one attribute. | |
| void | data_stream_trait_wrapper_classCheckCall (std::ofstream &fs, const PString &className, const PString &functionName) |
| Call the check of a class. | |
| void | data_stream_trait_wrapper_classImplCheck (std::ofstream &fs, const PClassConfig &classConfig, const PString &moduleName) |
| Do the check implementation of class. | |
| void | data_stream_trait_wrapper_classPythonFromBytes (std::ofstream &fs, const PClassConfig &classConfig, const PString &className) |
| Do the implementation of data stream method _fromBytes for one class. | |
| void | data_stream_trait_wrapper_classPythonGetSizeInBytes (std::ofstream &fs, const PClassConfig &classConfig, const PString &className) |
| Do the implementation of data stream method _getSizeInByte for one class. | |
| void | data_stream_trait_wrapper_classPythonToBytes (std::ofstream &fs, const PClassConfig &classConfig, const PString &className) |
| Do the implementation of data stream method _toBytes for one class. | |
| PString | pythonAssertTestValue (const PString &varName, const PClassAttribute &attr, const PString &moduleName, const PString &indentation, const std::map< std::string, PClassConfig > &mapClass) |
| Get the default set of given attribute for a test. | |
| PString | pythonDefaultTestValue (const PString &varName, const PClassAttribute &attr, const PString &moduleName, const PString &indentation, const std::map< std::string, PClassConfig > &mapClass) |
| Get the default set of given attribute for a test. | |
| PString | pythonGetDefaultTestValue (PString &type) |
| Get the default of a given type for a test. | |
| void data_stream_trait_wrapper_callAttributeCheck | ( | std::ofstream & | fs, |
| const PString & | className, | ||
| const PClassAttribute & | attr, | ||
| const PString & | moduleName, | ||
| const PString & | expectedType ) |
Do the check call of an attribute of a given class.
| [out] | fs | : file to be completed |
| className | : name of the class the attribute belongs to | |
| attr | : class attribute to be checked | |
| moduleName | : name of the module where the class should be defined | |
| expectedType | : expected type by respected to the configuration .pdata |
Definition at line 17 of file WrapperTraitDataStream.cpp.
References PClassAttribute::getName(), and PClassAttribute::getType().
Referenced by data_stream_trait_wrapper_classImplCheck().
Here is the call graph for this function:
Here is the caller graph for this function:| void data_stream_trait_wrapper_classAttributeFromMessage | ( | std::ofstream & | fs, |
| const PString & | className, | ||
| const PClassAttribute & | attr ) |
Do the implementation of from message of one attribute.
| [out] | fs | : file to be completed |
| className | : name of the current class | |
| attr | : current attribute |
Definition at line 251 of file WrapperTraitDataStream.cpp.
References generator_getListNestedType(), generator_typeIsList(), PClassAttribute::getIsEnum(), getIsSimpleType(), PClassAttribute::getName(), PClassAttribute::getType(), and wrapper_getValueToObject().
Referenced by WrapperTraitDataStream::classMethodImplementation().
Here is the call graph for this function:
Here is the caller graph for this function:| void data_stream_trait_wrapper_classAttributeGetSize | ( | std::ofstream & | fs, |
| const PString & | className, | ||
| const PClassAttribute & | attr ) |
Do the implementation of get size of one attribute.
| [out] | fs | : file to be completed |
| className | : name of the current class | |
| attr | : attribute of the class |
Definition at line 397 of file WrapperTraitDataStream.cpp.
References generator_getListNestedType(), generator_typeIsList(), PClassAttribute::getIsEnum(), getIsSimpleType(), PClassAttribute::getName(), and PClassAttribute::getType().
Referenced by WrapperTraitDataStream::classMethodImplementation().
Here is the call graph for this function:
Here is the caller graph for this function:| void data_stream_trait_wrapper_classAttributeToMessage | ( | std::ofstream & | fs, |
| const PString & | className, | ||
| const PClassAttribute & | attr ) |
Do the implementation of to message of one attribute.
| [out] | fs | : file to be completed |
| className | : name of the current class | |
| attr | : current attribute |
Definition at line 333 of file WrapperTraitDataStream.cpp.
References generator_getListNestedType(), generator_typeIsList(), PClassAttribute::getIsEnum(), getIsSimpleType(), PClassAttribute::getName(), PClassAttribute::getType(), and wrapper_getObjectToValue().
Referenced by WrapperTraitDataStream::classMethodImplementation().
Here is the call graph for this function:
Here is the caller graph for this function:| void data_stream_trait_wrapper_classCheckCall | ( | std::ofstream & | fs, |
| const PString & | className, | ||
| const PString & | functionName ) |
Call the check of a class.
| [out] | fs | : file to be completed |
| className | : name of the class to be checked | |
| functionName | : name of the function where it is called |
Definition at line 147 of file WrapperTraitDataStream.cpp.
Referenced by data_stream_trait_wrapper_classPythonGetSizeInBytes(), and data_stream_trait_wrapper_classPythonToBytes().
Here is the caller graph for this function:| void data_stream_trait_wrapper_classImplCheck | ( | std::ofstream & | fs, |
| const PClassConfig & | classConfig, | ||
| const PString & | moduleName ) |
Do the check implementation of class.
| [out] | fs | : file to be completed |
| classConfig | : class configuration | |
| moduleName | : name of the module where the class should be defined |
Definition at line 32 of file WrapperTraitDataStream.cpp.
References data_stream_trait_wrapper_callAttributeCheck(), generator_getListNestedType(), generator_typeIsList(), PClassConfig::getIsEnum(), getIsSimpleType(), PClassConfig::getListAttribute(), wrapper_getClassName(), and wrapper_getExpectedType().
Referenced by WrapperTraitDataStream::classMethodImplementation().
Here is the call graph for this function:
Here is the caller graph for this function:| void data_stream_trait_wrapper_classPythonFromBytes | ( | std::ofstream & | fs, |
| const PClassConfig & | classConfig, | ||
| const PString & | className ) |
Do the implementation of data stream method _fromBytes for one class.
| [out] | fs | : file to be completed |
| classConfig | : class configuration | |
| className | : name of the current class |
Definition at line 92 of file WrapperTraitDataStream.cpp.
References PClassConfig::getIsEnum(), PClassConfig::getListAttribute(), and wrapper_getObjectParseTuple().
Referenced by WrapperTraitDataStream::classMethodImplementation().
Here is the call graph for this function:
Here is the caller graph for this function:| void data_stream_trait_wrapper_classPythonGetSizeInBytes | ( | std::ofstream & | fs, |
| const PClassConfig & | classConfig, | ||
| const PString & | className ) |
Do the implementation of data stream method _getSizeInByte for one class.
| [out] | fs | : file to be completed |
| classConfig | : class configuration | |
| className | : name of the current class |
Definition at line 213 of file WrapperTraitDataStream.cpp.
References data_stream_trait_wrapper_classCheckCall(), PClassConfig::getIsEnum(), and PClassConfig::getListAttribute().
Referenced by WrapperTraitDataStream::classMethodImplementation().
Here is the call graph for this function:
Here is the caller graph for this function:| void data_stream_trait_wrapper_classPythonToBytes | ( | std::ofstream & | fs, |
| const PClassConfig & | classConfig, | ||
| const PString & | className ) |
Do the implementation of data stream method _toBytes for one class.
| [out] | fs | : file to be completed |
| classConfig | : class configuration | |
| className | : name of the current class |
Definition at line 162 of file WrapperTraitDataStream.cpp.
References data_stream_trait_wrapper_classCheckCall(), PClassConfig::getIsEnum(), and PClassConfig::getListAttribute().
Referenced by WrapperTraitDataStream::classMethodImplementation().
Here is the call graph for this function:
Here is the caller graph for this function:| PString pythonAssertTestValue | ( | const PString & | varName, |
| const PClassAttribute & | attr, | ||
| const PString & | moduleName, | ||
| const PString & | indentation, | ||
| const std::map< std::string, PClassConfig > & | mapClass ) |
Get the default set of given attribute for a test.
| varName | : name of the variable of the class to be used |
| attr | : attribute to be set |
| moduleName | : name of the module to be used |
| indentation | : indentation of the set |
| mapClass | : map of all classes/types defined for this configuration |
Definition at line 498 of file WrapperTraitDataStream.cpp.
References PClassAttribute::getIsEnum(), PClassAttribute::getName(), PClassAttribute::getType(), and pythonGetDefaultTestValue().
Referenced by WrapperTraitDataStream::testFunction().
Here is the call graph for this function:
Here is the caller graph for this function:| PString pythonDefaultTestValue | ( | const PString & | varName, |
| const PClassAttribute & | attr, | ||
| const PString & | moduleName, | ||
| const PString & | indentation, | ||
| const std::map< std::string, PClassConfig > & | mapClass ) |
Get the default set of given attribute for a test.
| varName | : name of the variable of the class to be used |
| attr | : attribute to be set |
| moduleName | : name of the module to be used |
| indentation | : indentation of the set |
| mapClass | : map of all classes/types defined for this configuration |
Definition at line 469 of file WrapperTraitDataStream.cpp.
References PClassAttribute::getIsEnum(), PClassAttribute::getName(), PClassAttribute::getType(), and pythonGetDefaultTestValue().
Referenced by WrapperTraitDataStream::testFunction().
Here is the call graph for this function:
Here is the caller graph for this function:| PString pythonGetDefaultTestValue | ( | PString & | type | ) |
Get the default of a given type for a test.
| type | : type of the attribute to be set |
Definition at line 439 of file WrapperTraitDataStream.cpp.
References generator_getListNestedType(), generator_typeIsList(), and pythonGetDefaultTestValue().
Referenced by pythonAssertTestValue(), pythonDefaultTestValue(), and pythonGetDefaultTestValue().
Here is the call graph for this function:
Here is the caller graph for this function: