#include <xi-Message.h>
Public Member Functions | |
Message (int l, NamedType *t, MsgVarList *mv=0) | |
void | print (XStr &str) |
void | genDecls (XStr &str) |
void | genDefs (XStr &str) |
void | genReg (XStr &str) |
virtual const char * | proxyPrefix (void) |
void | genAllocDecl (XStr &str) |
int | numArrays (void) |
int | numConditional (void) |
int | numVars (void) |
Private Member Functions | |
void | printVars (XStr &str) |
Private Attributes | |
NamedType * | type |
MsgVarList * | mvlist |
Definition at line 31 of file xi-Message.h.
xi::Message::Message | ( | int | l, | |
NamedType * | t, | |||
MsgVarList * | mv = 0 | |||
) |
Definition at line 27 of file xi-Message.C.
References xi::AstNode::line, and xi::TEntity::setTemplate().
void xi::Message::printVars | ( | XStr & | str | ) | [private] |
Definition at line 382 of file xi-Message.C.
References mvlist, and xi::MsgVarList::print().
Referenced by print().
void xi::Message::print | ( | XStr & | str | ) | [virtual] |
Implements xi::Printable.
Definition at line 373 of file xi-Message.C.
References xi::Construct::external, xi::Template::genSpec(), xi::NamedType::print(), printVars(), xi::TEntity::templat, and type.
Referenced by genDecls(), genDefs(), and genReg().
void xi::Message::genDecls | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 82 of file xi-Message.C.
References xi::Construct::external, genAllocDecl(), xi::Template::genSpec(), xi::GroupDepNumStruct, xi::MsgVar::isArray(), xi::MsgVar::isConditional(), mvlist, xi::MsgVar::name, xi::MsgVarList::next, numVars(), xi::MsgVar::print(), xi::XStr::print(), print(), proxyPrefix(), xi::TEntity::templat, xi::MsgVar::type, and type.
void xi::Message::genDefs | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 133 of file xi-Message.C.
References xi::XStr::clear(), count, xi::Construct::external, xi::Template::genSpec(), xi::Template::genVars(), xi::MsgVar::isArray(), xi::MsgVar::isConditional(), xi::Type::isPointer(), xi::AstNode::line, mvlist, xi::MsgVar::name, xi::MsgVarList::next, numArrays(), numConditional(), numVars(), xi::Type::print(), print(), proxyPrefix(), xi::TEntity::templat, xi::templateGuardBegin(), xi::templateGuardEnd(), xi::TEntity::tspec(), xi::MsgVar::type, and type.
void xi::Message::genReg | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 360 of file xi-Message.C.
References xi::Construct::external, print(), proxyPrefix(), xi::TEntity::templat, xi::TEntity::tspec(), and type.
const char * xi::Message::proxyPrefix | ( | void | ) | [virtual] |
Definition at line 32 of file xi-Message.C.
References Prefix::Message.
Referenced by genDecls(), genDefs(), and genReg().
void xi::Message::genAllocDecl | ( | XStr & | str | ) |
Definition at line 34 of file xi-Message.C.
References xi::CIMsgClassAnsi, xi::Template::genVars(), numArrays(), xi::TEntity::templat, and type.
Referenced by genDecls().
int xi::Message::numArrays | ( | void | ) |
Definition at line 390 of file xi-Message.C.
References count, xi::MsgVarList::len(), mvlist, and xi::MsgVarList::next.
Referenced by genAllocDecl(), and genDefs().
int xi::Message::numConditional | ( | void | ) |
Definition at line 399 of file xi-Message.C.
References count, xi::MsgVarList::len(), mvlist, and xi::MsgVarList::next.
Referenced by genDefs().
int xi::Message::numVars | ( | void | ) |
Definition at line 408 of file xi-Message.C.
References xi::MsgVarList::len(), and mvlist.
Referenced by genDecls(), and genDefs().
NamedType* xi::Message::type [private] |
Definition at line 32 of file xi-Message.h.
Referenced by genAllocDecl(), genDecls(), genDefs(), genReg(), and print().
MsgVarList* xi::Message::mvlist [private] |
Definition at line 33 of file xi-Message.h.
Referenced by genDecls(), genDefs(), numArrays(), numConditional(), numVars(), and printVars().