ADTF
|
Representation of a stream inside a DDL description. More...
Public Member Functions | |
cDDLStream () | |
Default CTOR. | |
cDDLStream (cDDLComplex *poType, const A_UTILS_NS::cString &strName=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strDescription=A_UTILS_NS::cString::Empty, tDDLStreamStructVec vecStructs=tDDLStreamStructVec(), int const nCreationLevel=4) | |
CTOR. More... | |
cDDLStream (cDDLStream &oStream) | |
Copy CTOR. More... | |
virtual | ~cDDLStream () |
DTOR. | |
tResult | Accept (IDDLVisitor *poVisitor) |
Acceptance method for Visitor design-pattern. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
int | GetCreationLevel () const |
Getter for the creation level. More... | |
tResult | Create (cDDLComplex *poType, const A_UTILS_NS::cString &strName=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strDescription=A_UTILS_NS::cString::Empty, tDDLStreamStructVec vecStructs=tDDLStreamStructVec(), int const nCreationLevel=4) |
Creation method to fill the object with data. More... | |
A_UTILS_NS::cString | GetType () const |
Getter for the name of the complex data type. More... | |
void | SetType (cDDLComplex *const pType) |
Setter for the object of the complex data type. More... | |
double | GetDDLVersion () const |
Getter for the DDL version. More... | |
tResult | SetDDLVersion (double const fLanguageVersion) |
Setter for the DDL version. More... | |
cDDLComplex * | GetTypeObject () const |
Getter for the complex data-type object. More... | |
void | SetName (const A_UTILS_NS::cString &strName) |
Setter for the name. More... | |
const A_UTILS_NS::cString & | GetName () const |
Getter for the name. More... | |
void | SetDescription (const A_UTILS_NS::cString &strDescription) |
Setter for the description. More... | |
A_UTILS_NS::cString | GetDescription () const |
Getter for the description. More... | |
void | CloneStructs (tDDLStreamStructVec vecStructs) |
Setter for the contained structs. More... | |
void | RefStructs (tDDLStreamStructVec vecStructs) |
Setter for the contained structs. More... | |
void | AddStruct (cDDLStreamStruct *poStruct) |
Adder for a struct. More... | |
tResult | RemoveStruct (const A_UTILS_NS::cString &strStructName) |
removal for a struct item. More... | |
tDDLStreamStructVec & | GetStructs () |
Getter for the contained structs. More... | |
const tDDLStreamStructVec & | GetStructs () const |
Getter for the contained structs. More... | |
![]() | |
virtual | ~cDDL () |
DTOR. | |
virtual bool | IsPredefined () const |
Getter for the predefinition flag. More... | |
virtual bool | IsOverwriteable () const |
Getter for the predefinition flag. More... | |
![]() | |
virtual | ~IDDL () |
Virtual DTOR. | |
Private Attributes | |
A_UTILS_NS::cString | m_strName |
cDDLComplex * | m_poType |
A_UTILS_NS::cString | m_strDescription |
tDDLStreamStructVec | m_vecStructs |
bool | m_bInitFlag |
int | m_nLevel |
double | m_fLanguageVersion |
Additional Inherited Members | |
![]() | |
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01 } |
Flags for Merging. | |
![]() | |
template<typename T > | |
static T * | DeleteChild (T *pvObj) |
Functor for use with std::transform() to delete all objects where the elements of a vector point at. More... | |
template<typename T > | |
static tResult | MoveChild (T *pvObj, const int nFrom, const int nTo) |
Method moves element within the list. More... | |
template<typename T > | |
static T * | Clone (T *pvObj) |
Functor for use with std::transform() to clone the objects where the elements of a vector point at. More... | |
template<typename T > | |
static T * | Ref (T *pvObj) |
Functor for use with std::transform() to ref the objects where the elements of a vector point at, this is for the Always_there. More... | |
static bool | IsEqual (IDDL *poLHS, IDDL *poRHS) |
Predicate to compare 2 DDL representation objects (for use with std::unique() ). More... | |
static bool | IsSorted (IDDL *poLHS, IDDL *poRHS) |
Sort predicate to compare to 2 DDL representation objects (for use with std::sort() ). More... | |
Representation of a stream inside a DDL description.
Definition at line 27 of file ddlstream.h.
cDDLStream | ( | cDDLComplex * | poType, |
const A_UTILS_NS::cString & | strName = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strDescription = A_UTILS_NS::cString::Empty , |
||
tDDLStreamStructVec | vecStructs = tDDLStreamStructVec() , |
||
int const | nCreationLevel = 4 |
||
) |
CTOR.
[in] | poType | - Pointer to complex datatype object |
[in] | strName | - Name of the stream (optional) |
[in] | strDescription | - Description (optional) |
[in] | vecStructs | - Vector of cDDLStreamStruct objects (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
cDDLStream | ( | cDDLStream & | oStream | ) |
Copy CTOR.
[in] | oStream | - Reference to stream object to copy |
|
virtual |
Acceptance method for Visitor design-pattern.
[in] | poVisitor | - Pointer to Visitor instance |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
ERR_NOT_INITIALIZED | The object was not or not correctly initialized |
Implements IDDL.
void AddStruct | ( | cDDLStreamStruct * | poStruct | ) |
Adder for a struct.
[in] | poStruct | - Pointer to the struct object to add |
void CloneStructs | ( | tDDLStreamStructVec | vecStructs | ) |
Setter for the contained structs.
[in] | vecStructs | - Vector of structures (complex data types) |
tResult Create | ( | cDDLComplex * | poType, |
const A_UTILS_NS::cString & | strName = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strDescription = A_UTILS_NS::cString::Empty , |
||
tDDLStreamStructVec | vecStructs = tDDLStreamStructVec() , |
||
int const | nCreationLevel = 4 |
||
) |
Creation method to fill the object with data.
[in] | poType | - Pointer to complex datatype object |
[in] | strName | - Name of the stream (optional) |
[in] | strDescription | - Description (optional) |
[in] | vecStructs | - Vector of cDDLStreamStruct objects (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
ERR_POINTER | Null-pointer committed |
|
virtual |
Getter for the creation level.
Reimplemented from cDDL.
double GetDDLVersion | ( | ) | const |
Getter for the DDL version.
A_UTILS_NS::cString GetDescription | ( | ) | const |
Getter for the description.
|
virtual |
tDDLStreamStructVec& GetStructs | ( | ) |
Getter for the contained structs.
const tDDLStreamStructVec& GetStructs | ( | ) | const |
Getter for the contained structs.
A_UTILS_NS::cString GetType | ( | ) | const |
Getter for the name of the complex data type.
cDDLComplex* GetTypeObject | ( | ) | const |
Getter for the complex data-type object.
|
virtual |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Reimplemented from cDDL.
void RefStructs | ( | tDDLStreamStructVec | vecStructs | ) |
Setter for the contained structs.
[in] | vecStructs | - Vector of structures (complex data types) |
tResult RemoveStruct | ( | const A_UTILS_NS::cString & | strStructName | ) |
removal for a struct item.
[in] | strStructName | - name of struct object to remove |
ERR_NOT_FOUND | if not exists |
tResult SetDDLVersion | ( | double const | fLanguageVersion | ) |
Setter for the DDL version.
fLanguageVersion | the DDL version to set |
ERR_NOERROR |
void SetDescription | ( | const A_UTILS_NS::cString & | strDescription | ) |
Setter for the description.
[in] | strDescription | - Description of the stream |
void SetName | ( | const A_UTILS_NS::cString & | strName | ) |
Setter for the name.
[in] | strName | - Name of the stream |
void SetType | ( | cDDLComplex *const | pType | ) |
Setter for the object of the complex data type.
[in] | pType | - the type object referencing to |