}
}
+std::string TypeCode::getPrintStr() const
+{
+ return id();
+}
+
//! Check if this TypeCode can be used in place of tc
/*!
* this TypeCode is equivalent to tc if they have the same kind
return KIND_STR_REPR[(int)kind];
}
+const TypeCode *TypeCode::subContentType(int lev) const
+{
+ if(lev<0)
+ throw YACS::Exception("subContentType: Invalid input val !");
+ if(lev==0)
+ return this;
+ const TypeCode *ret(this);
+ for(int i=0;i<lev;i++)
+ {
+ const TypeCode *cand(ret->contentType());
+ if(!cand)
+ throw YACS::Exception("subContentType : Invalid input val 2 !");
+ ret=cand;
+ }
+ return ret;
+}
+
const char * TypeCode::getKindRepr() const
{
return KIND_STR_REPR[(int)_kind];
return _shortName.c_str();
}
+std::string TypeCodeSeq::getPrintStr() const
+{
+ std::ostringstream oss; oss << "seq[" << contentType()->getPrintStr() << "]";
+ return oss.str();
+}
+
const TypeCode * TypeCodeSeq::contentType() const throw(YACS::Exception)
{
return _content;