00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #if !defined(AXIS_COMPLEXELEMENT_H__OF_AXIS_INCLUDED_)
00039 #define AXIS_COMPLEXELEMENT_H__OF_AXIS_INCLUDED_
00040
00041 #ifdef WIN32
00042 #pragma warning (disable : 4786)
00043 #endif
00044
00045 using namespace std;
00046
00055 class ComplexElement : public BasicNode
00056 {
00057 public:
00058 ComplexElement(AxisChar* pachLocalName, AxisChar* pachPrefix, AxisChar* pachUri);
00059
00065 int getNoOfChildren();
00066
00073 const BasicNode* getChild(int iChildPosition) const;
00074
00080 const BasicNode* getLastChild() const;
00081
00087 const BasicNode* getFirstChild() const;
00088
00096 int addChild(BasicNode* pBasicNode);
00097
00103 NODE_TYPE getNodeType() const;
00104
00111 int setURI(const AxisChar* pachURI);
00112
00119 int setLocalName(const AxisChar* pachLocalName);
00120
00127 int setPrefix(const AxisChar* pachPrefix);
00128
00129 int serialize(SoapSerializer& pSZ);
00130
00131 int serialize(SoapSerializer& pSZ, list<AxisChar*>& lstTmpNameSpaceStack);
00132
00136 ComplexElement();
00137 ComplexElement(const ComplexElement& rCopy);
00138 BasicNode* clone();
00139
00143 virtual ~ComplexElement();
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155 int setValue(const AxisChar* pachValue) {return AXIS_FAIL;}
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167 const AxisChar* getValue() const {return NULL;}
00168
00169 private:
00170 int iNoOfChildren;
00171 int serializeChildren(SoapSerializer& pSZ);
00172 int serializeChildren(SoapSerializer& pSZ, list<AxisChar*>& lstTmpNameSpaceStack);
00173 bool isSerializable();
00174 list<BasicNode*> m_children;
00175 AxisChar* m_pachPrefix;
00176 AxisChar* m_pachLocalName;
00177 AxisChar* m_pachURI;
00178 };
00179
00180 #endif