48 for (
int i = 0; attr[
i];
i += 2)
50 if(std::string(attr[
i]) ==
"name")
name(attr[
i+1]);
51 if(std::string(attr[
i]) ==
"kind")
kind(attr[
i+1]);
76 DEBTRACE(
"seqtypeParser::onStart: " << el )
85 DEBTRACE(
"seqtypeParser::onEnd: " << el )
93 for (
int i = 0; attr[
i];
i += 2)
95 if(std::string(attr[
i]) ==
"name")
name(attr[
i+1]);
96 if(std::string(attr[
i]) ==
"content")
content(attr[
i+1]);
113 std::stringstream msg;
114 msg <<
"Type " <<
name <<
" does not exist" <<
" (" <<__FILE__ <<
":" << __LINE__ <<
")";
135 DEBTRACE(
"objtypeParser::onStart: " << el )
136 std::string element(el);
146 DEBTRACE(
"objtypeParser::onEnd: " << el )
147 std::string element(el);
155 for (
int i = 0; attr[
i];
i += 2)
157 if(std::string(attr[
i]) ==
"name")
name(attr[
i+1]);
158 if(std::string(attr[
i]) ==
"id")
id(attr[
i+1]);
185 std::stringstream msg;
186 msg <<
"Type " <<
name <<
" does not exist" <<
" (" <<__FILE__ <<
":" << __LINE__ <<
")";
197 std::stringstream msg;
198 msg <<
"Type " <<
name <<
" is not an objref" ;
199 msg <<
" (" <<__FILE__ <<
":" << __LINE__ <<
")";
217 for (
int i = 0; attr[
i];
i += 2)
219 if(std::string(attr[
i]) ==
"name")
name(attr[
i+1]);
220 if(std::string(attr[
i]) ==
"type")
type(attr[
i+1]);
229 DEBTRACE(
"structtypeParser::onStart: " << el )
230 std::string element(el);
240 DEBTRACE(
"structtypeParser::onEnd: " << el )
241 std::string element(el);
249 for (
int i = 0; attr[
i];
i += 2)
251 if(std::string(attr[
i]) ==
"name")
name(attr[
i+1]);
252 if(std::string(attr[
i]) ==
"id")
id(attr[
i+1]);
279 std::string msg=
"Unknown type " + prop.
_value +
" for member " + prop.
_name +
" in struct " +
_name;
305 std::string msg=
"Forward declaration must be a struct type but " + std::string(tt->
name()) +
" is not one" ;
313 std::vector<myprop>::const_iterator iter;
316 DEBTRACE(
"member: " << iter->_name <<
" " <<iter->_value);
Base class for all schema objects.
virtual TypeCode * createSequenceTc(const std::string &id, const std::string &name, TypeCode *content)
Create a sequence TypeCode.
std::map< std::string, TypeCode * > typeMap
virtual TypeCode * createStructTc(const std::string &id, const std::string &name)
virtual TypeCode * createInterfaceTc(const std::string &id, const std::string &name, std::list< TypeCodeObjref * > ltc)
Create an object reference TypeCode.
virtual TypeCode * getTypeCode(const std::string &name)
Get a typecode by its name from runtime catalogs.
Class for reference objects.
Base class for all type objects.
virtual const char * name() const
virtual void name(const std::string &name)
virtual void buildAttr(const XML_Char **attr)
virtual void type(const std::string &name)
static membertypeParser memberParser
virtual void onStart(const XML_Char *el, const XML_Char **attr)
virtual void base(const std::string &name)
virtual void buildAttr(const XML_Char **attr)
virtual void name(const std::string &name)
virtual void id(const std::string &name)
virtual YACS::ENGINE::TypeCode * post()
static objtypeParser objParser
std::list< YACS::ENGINE::TypeCodeObjref * > _ltc
virtual void onEnd(const char *el, parser *child)
virtual void SetUserDataAndPush(parser *pp)
virtual void required(const std::string &name, const XML_Char **attr)
virtual void buildAttr(const XML_Char **attr)
static parser main_parser
YACS::ENGINE::TypeCode * _contentType
virtual void buildAttr(const XML_Char **attr)
void content(const std::string &name)
void name(const std::string &name)
YACS::ENGINE::TypeCode * post()
static seqtypeParser seqParser
virtual void onStart(const XML_Char *el, const XML_Char **attr)
virtual void onEnd(const char *el, parser *child)
static stringtypeParser stringParser
virtual void onEnd(const char *el, parser *child)
virtual void onStart(const XML_Char *el, const XML_Char **attr)
virtual void member(const myprop &prop)
virtual YACS::ENGINE::TypeCode * post()
static structtypeParser structParser
virtual void name(const std::string &name)
virtual void id(const std::string &name)
virtual void buildAttr(const XML_Char **attr)
std::vector< myprop > _members
static typetypeParser typeParser
virtual void name(const std::string &name)
virtual void buildAttr(const XML_Char **attr)
virtual void kind(const std::string &name)
YACS::ENGINE::Runtime * theRuntime
YACS::ENGINE::Proc * currentProc