Decorator class for cDDLComplex to be used inside cDDLStream objects.
More...
#include <ddlstreamstruct.h>
|
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01
} |
| Flags for Merging. More...
|
|
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.
|
|
template<typename T> |
static tResult | MoveChild (T *pvObj, const int nFrom, const int nTo) |
| Method moves element within the list.
|
|
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.
|
|
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.
|
|
static bool | IsEqual (IDDL *poLHS, IDDL *poRHS) |
| Predicate to compare 2 DDL representation objects (for use with std::unique() ).
|
|
static bool | IsSorted (IDDL *poLHS, IDDL *poRHS) |
| Sort predicate to compare to 2 DDL representation objects (for use with std::sort() ).
|
|
Decorator class for cDDLComplex to be used inside cDDLStream objects.
Definition at line 18 of file ddlstreamstruct.h.
◆ cDDLStreamStruct() [1/2]
CTOR.
- Parameters
-
[in] | poType | - Pointer to complex datatype object |
[in] | uiBytepos | - Byte position of the complex datatype |
[in] | strName | - Name of the stream structure (optional) |
References string_base< cStackString >::Empty.
◆ cDDLStreamStruct() [2/2]
◆ Accept()
Acceptance method for Visitor design-pattern.
- Parameters
-
[in] | poVisitor | - Pointer to Visitor instance |
- Return values
-
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.
◆ Create()
Creation method to fill the object with data.
- Parameters
-
[in] | poType | - Pointer to complex datatype object |
[in] | uiBytepos | - Byte position of the complex datatype |
[in] | strName | - Name of the stream structure (optional) |
- Return values
-
ERR_POINTER | Null-pointer committed |
References string_base< cStackString >::Empty.
◆ GetBytepos()
unsigned int GetBytepos |
( |
| ) |
const |
Getter for the byte position.
- Returns
- the byte position
◆ GetName()
Getter for the name.
- Returns
- the name
Implements IDDL.
◆ GetType()
Getter for the name of the complex data type.
- Returns
- name of the type object
◆ GetTypeObject()
Getter for the complex data-type object.
- Returns
- pointer to the complex data-type object
◆ IsInitialized()
bool IsInitialized |
( |
| ) |
const |
|
virtual |
Getter for the initialization flag.
- Return values
-
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Reimplemented from cDDL.
◆ SetBytepos()
void SetBytepos |
( |
unsigned int const | uiBytepos | ) |
|
Setter for the byte position.
- Parameters
-
[in] | uiBytepos | - the byte position |
- Returns
- void
◆ SetName()
Setter for the name.
- Parameters
-
[in] | strName | - Name of the stream structure |
- Returns
- void
◆ SetType()
Setter for the complex data-type object.
- Parameters
-
[in] | pType | - complex data-type object |
- Returns
- void
◆ m_bInitFlag
◆ m_poType
◆ m_strName
◆ m_uiBytepos