24 #ifndef _TYPECONTAINERH
25 #define _TYPECONTAINERH
38 std::vector<TypeContainer *>
tc;
72 void * getValue(
const std::string & name,
Schema::Type & type);
75 bool isValueValid()
const;
84 void setValue(
const std::string & sValue,
bool valid=
true);
85 void setValue(
int iValue,
bool valid=
true);
86 void setValue(
char cValue,
bool valid=
true);
87 void setValue(
long lValue,
bool valid=
true);
88 void setValue(
unsigned long ulValue,
bool valid=
true);
89 void setValue(
float fValue,
bool valid=
true);
90 void setValue(
double dbValue,
bool valid=
true);
91 void setValue(
bool bValue,
bool valid=
true);
92 void setValue(
Qname & qnValue,
bool valid=
true);
95 void setValAsString(
const std::string &v);
96 void print(std::ostream & os);
104 std::map < std::string, Containers *> particleContainers_;
105 std::map<ContentModel*,TypeContainer* >cmContainers_;
106 std::map < std::string, TypeContainer *> attributeContainers_;
133 std::vector<TypeContainer*> tcTable;
136 void printComplexType (std::ostream & os);
137 void printSimpleType (std::ostream & os);
138 void printContentModel(std::ostream & os);
141 void rewindParticleContainers(std::map < std::string, Containers *> &particleContainers);
149 Value.sValue =
new std::string(sValue);
158 Value.iValue =
new int (iValue);
167 Value.cValue =
new char (cValue);
176 Value.lValue =
new long (lValue);
185 Value.ulValue =
new unsigned long (ulValue);
194 Value.fValue =
new float;
195 *(Value.fValue) = fValue;
204 Value.dbValue =
new double;
205 *(Value.dbValue) = dbValue;
214 Value.bValue =
new bool;
215 *(Value.bValue) = bValue;
224 Value.qnValue =
new Qname(qnValue);
262 return isValueValid_;
ContentModel * getContentModel() const
bool isValueValid() const
void setValue(const std::string &sValue, bool valid=true)
std::ostream & operator<<(std::ostream &os, TypeContainer &tc)
std::vector< TypeContainer * > tc
static bool printTypeNames_
void setValAsString(const std::string &v)