ADTF  3.18.2
ddlstreamstruct.h
Go to the documentation of this file.
1 
7 #ifndef _STREAM_STRUCT_H_INCLUDED_
8 #define _STREAM_STRUCT_H_INCLUDED_
9 
10 namespace adtf_ddl
11 {
12 
13  class cDDLComplex;
14 
18  class cDDLStreamStruct : public cDDL
19  {
20  public:
25 
35  unsigned int const uiBytepos,
37 
43 
48 
49  tResult Accept(IDDLVisitor *poVisitor);
50 
51  bool IsInitialized() const;
52 
63  unsigned int const uiBytepos,
65 
70  const A_UTILS_NS::cString& GetType() const;
71 
77  void SetType(cDDLComplex* const pType);
78 
84 
90  void SetName(const A_UTILS_NS::cString& strName);
91 
96  const A_UTILS_NS::cString& GetName() const;
97 
102  unsigned int GetBytepos() const;
103 
109  void SetBytepos(unsigned int const uiBytepos);
110 
111 
112  private:
113  cDDLComplex * m_poType;
114  unsigned int m_uiBytepos;
115  A_UTILS_NS::cString m_strName;
116  bool m_bInitFlag;
117  };
118 
119 } // namespace adtf_ddl
120 
121 #endif // _STREAM_STRUCT_H_INCLUDED_
static const _myType Empty
Internally used empty string.
Definition: string.h:54
Abstract base class/interface for Visitor design-pattern.
Representation for a complex datatype inside a DDL specification.
Definition: ddlcomplex.h:35
Decorator class for cDDLComplex to be used inside cDDLStream objects.
tResult Create(cDDLComplex *poType, unsigned int const uiBytepos, const A_UTILS_NS::cString &strName=A_UTILS_NS::cString::Empty)
Creation method to fill the object with data.
const A_UTILS_NS::cString & GetName() const
Getter for the name.
cDDLStreamStruct(cDDLComplex *poType, unsigned int const uiBytepos, const A_UTILS_NS::cString &strName=A_UTILS_NS::cString::Empty)
CTOR.
unsigned int GetBytepos() const
Getter for the byte position.
void SetType(cDDLComplex *const pType)
Setter for the complex data-type object.
bool IsInitialized() const
Getter for the initialization flag.
cDDLStreamStruct()
Default CTOR.
cDDLComplex * GetTypeObject() const
Getter for the complex data-type object.
cDDLStreamStruct(cDDLStreamStruct &oStruct)
CTOR.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
void SetName(const A_UTILS_NS::cString &strName)
Setter for the name.
const A_UTILS_NS::cString & GetType() const
Getter for the name of the complex data type.
void SetBytepos(unsigned int const uiBytepos)
Setter for the byte position.
Namespace for the mainpage_pkg_ddl.