Version: 9.15.0
YACS::ENGINE::TypeCodeComposed Class Reference

#include <TypeCode.hxx>

Inheritance diagram for YACS::ENGINE::TypeCodeComposed:
Collaboration diagram for YACS::ENGINE::TypeCodeComposed:

Protected Member Functions

 TypeCodeComposed (const TypeCodeComposed &other)
 
 TypeCodeComposed (DynType kind, const char *repositoryId, const char *name)
 
- Protected Member Functions inherited from YACS::ENGINE::TypeCode
 TypeCode (const TypeCode &tc)
 
TypeCodeoperator= (const TypeCode &tc)
 
virtual ~TypeCode ()
 
- Protected Member Functions inherited from YACS::ENGINE::RefCounter
 RefCounter ()
 
 RefCounter (const RefCounter &other)
 
virtual ~RefCounter ()
 

Protected Attributes

const std::string _name
 
const std::string _repoId
 
std::string _shortName
 
- Protected Attributes inherited from YACS::ENGINE::TypeCode
const DynType _kind
 
- Protected Attributes inherited from YACS::ENGINE::RefCounter
unsigned int _cnt
 

Additional Inherited Members

- Public Member Functions inherited from YACS::ENGINE::TypeCode
 TypeCode (DynType kind)
 
DynType kind () const
 
const char * getKindRepr () const
 
const TypeCodesubContentType (int lev) const
 
virtual TypeCodeclone () const
 
virtual void putReprAtPlace (char *pt, const char *val, bool deepCpy) const
 
virtual void destroyZippedAny (char *data) const
 
virtual AnyPtr getOrBuildAnyFromZippedData (char *data) const
 
virtual const char * name () const
 
virtual const char * shortName () const
 
virtual const char * id () const
 
virtual const TypeCodecontentType () const
 
virtual int isA (const char *repositoryId) const
 
virtual int isA (const TypeCode *tc) const
 
virtual int isAdaptable (const TypeCode *tc) const
 Check if this TypeCode is adaptable to a given TypeCode (tc) More...
 
virtual int isEquivalent (const TypeCode *tc) const
 Check if this TypeCode can be used in place of tc. More...
 
virtual unsigned getSizeInByteOfAnyReprInSeq () const
 
virtual std::string getPrintStr () const
 
- Public Member Functions inherited from YACS::ENGINE::RefCounter
unsigned int getRefCnt () const
 
void incrRef () const
 
bool decrRef () const
 
- Static Public Member Functions inherited from YACS::ENGINE::TypeCode
static const char * getKindRepr (DynType kind)
 
static TypeCodeinterfaceTc (const char *id, const char *name)
 static factory of object reference type given an id and a name More...
 
static TypeCodeinterfaceTc (const char *id, const char *name, const std::list< TypeCodeObjref * > &ltc)
 static factory of object reference type given an id, a name and a list of base types More...
 
static TypeCodesequenceTc (const char *id, const char *name, TypeCode *content)
 static factory of sequence type given an id, a name and a content type More...
 
static TypeCodestructTc (const char *id, const char *name)
 static factory of struct type given an id and a name More...
 
- Static Public Attributes inherited from YACS::ENGINE::RefCounter
static unsigned int _totalCnt =0
 
- Static Protected Attributes inherited from YACS::ENGINE::TypeCode
static const char * KIND_STR_REPR [] ={ "None", "double", "int", "string", "bool", "Objref", "Sequence", "Array","Struct" }
 

Detailed Description

Definition at line 108 of file TypeCode.hxx.

Constructor & Destructor Documentation

◆ TypeCodeComposed() [1/2]

TypeCodeComposed::TypeCodeComposed ( const TypeCodeComposed other)
protected

Definition at line 275 of file TypeCode.cxx.

275  :TypeCode(other),
276  _name(other._name),_repoId(other._repoId),
277  _shortName(other._shortName)
278 {
279 }
const std::string _repoId
Definition: TypeCode.hxx:115
TypeCode(DynType kind)
Definition: TypeCode.cxx:35

◆ TypeCodeComposed() [2/2]

TypeCodeComposed::TypeCodeComposed ( DynType  kind,
const char *  repositoryId,
const char *  name 
)
protected

Definition at line 281 of file TypeCode.cxx.

281  :TypeCode(kind),
282  _repoId(repositoryId),_name(name)
283 {
284  string::size_type debut =_name.find_last_of('/');
285  if(debut == std::string::npos)
286  _shortName= name;
287  else
288  _shortName=_name.substr(debut+1);
289 }
virtual const char * name() const
Definition: TypeCode.cxx:72
DynType kind() const
Definition: TypeCode.cxx:47

References _name, _shortName, and YACS::ENGINE::TypeCode::name().

Member Data Documentation

◆ _name

const std::string YACS::ENGINE::TypeCodeComposed::_name
protected

◆ _repoId

◆ _shortName


The documentation for this class was generated from the following files: