Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ObjCryst::XMLCrystTag Class Reference

class to input or output a well-formatted xml beginning or ending tag. More...

List of all members.

Public Member Functions

 XMLCrystTag ()
 XMLCrystTag (istream &is)
 XMLCrystTag (const string &tagName, const bool isEndTag=false, const bool isEmptyTag=false)
 ~XMLCrystTag ()
const string & GetName () const
const string & GetClassName () const
unsigned int GetNbAttribute () const
void AddAttribute (const string &attName, const string &attValue)
void GetAttribute (const int attNum, string &attName, string &attValue)
const string & GetAttributeName (const int attNum) const
const string & GetAttributeValue (const int attNum) const
void SetIsEndTag (const bool isEndTag)
bool IsEndTag () const
void SetIsEmptyTag (const bool isEmptyTag)
bool IsEmptyTag () const
void Print () const

Private Attributes

string mName
bool mIsEndTag
bool mIsEmptyTag
vector< pair< std::string,
std::string > > 
mvAttribute

Friends

ostream & operator<< (ostream &, const XMLCrystTag &)
 Output an XMLCrystTag to a stream.

istream & operator>> (istream &, XMLCrystTag &)
 Input an XMLCrystTag from a stream.


Detailed Description

class to input or output a well-formatted xml beginning or ending tag.


Constructor & Destructor Documentation

ObjCryst::XMLCrystTag::XMLCrystTag  ) 
 

ObjCryst::XMLCrystTag::XMLCrystTag istream &  is  ) 
 

ObjCryst::XMLCrystTag::XMLCrystTag const string &  tagName,
const bool  isEndTag = false,
const bool  isEmptyTag = false
 

ObjCryst::XMLCrystTag::~XMLCrystTag  ) 
 


Member Function Documentation

void ObjCryst::XMLCrystTag::AddAttribute const string &  attName,
const string &  attValue
 

void ObjCryst::XMLCrystTag::GetAttribute const int  attNum,
string &  attName,
string &  attValue
 

const string& ObjCryst::XMLCrystTag::GetAttributeName const int  attNum  )  const
 

const string& ObjCryst::XMLCrystTag::GetAttributeValue const int  attNum  )  const
 

const string& ObjCryst::XMLCrystTag::GetClassName  )  const
 

const string& ObjCryst::XMLCrystTag::GetName  )  const
 

unsigned int ObjCryst::XMLCrystTag::GetNbAttribute  )  const
 

bool ObjCryst::XMLCrystTag::IsEmptyTag  )  const
 

bool ObjCryst::XMLCrystTag::IsEndTag  )  const
 

void ObjCryst::XMLCrystTag::Print  )  const
 

void ObjCryst::XMLCrystTag::SetIsEmptyTag const bool  isEmptyTag  ) 
 

void ObjCryst::XMLCrystTag::SetIsEndTag const bool  isEndTag  ) 
 


Friends And Related Function Documentation

ostream& operator<< ostream &  ,
const XMLCrystTag
[friend]
 

Output an XMLCrystTag to a stream.

istream& operator>> istream &  ,
XMLCrystTag
[friend]
 

Input an XMLCrystTag from a stream.


Member Data Documentation

bool ObjCryst::XMLCrystTag::mIsEmptyTag [private]
 

bool ObjCryst::XMLCrystTag::mIsEndTag [private]
 

string ObjCryst::XMLCrystTag::mName [private]
 

vector<pair<std::string,std::string> > ObjCryst::XMLCrystTag::mvAttribute [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Nov 14 15:05:45 2006 for ObjCryst++ by doxygen 1.3.6