Aceobj Class Reference

#include <Aceobj.h>

List of all members.

Public Member Functions

 Aceobj ()
 Aceobj (const string &str)
 ~Aceobj ()
void clear ()
void parse (const string &str)
bool empty ()
string getName () const
Acenodeat (const string &tag_path, int pos=0)
Acenodeget (const string &tag, int pos=0)
 Aceobj ()
 Aceobj (const string &str)
 ~Aceobj ()
void clear ()
void parse (const string &str)
Acenodeat (const string &tag_path, int pos=0)
Acenodeget (const string &tag, int pos=0)

Private Attributes

Acenoderoot


Constructor & Destructor Documentation

Aceobj::Aceobj (  )  [inline]

nothing will be done in default constructor.

Aceobj::Aceobj ( const string &  str  )  [inline]

use a string representation of an Ace object in Java format in tace> show -j option, dumps the text in java format Normally this object is huge and should not be passed by value.

References parse().

Aceobj::~Aceobj (  )  [inline]

copy constructor for tree does not make a lot of sense this operation should be put under private so that no one can use it.

References del(), and root.

Aceobj::Aceobj (  )  [inline]

nothing will be done in default constructor.

Aceobj::Aceobj ( const string &  str  )  [inline]

use a string representation of an Ace object in Java format in tace> show -j option, dumps the text in java format Normally this object is huge and should not be passed by value.

References parse().

Aceobj::~Aceobj (  )  [inline]

copy constructor for tree does not make a lot of sense this operation should be put under private so that no one can use it.

References del(), and root.


Member Function Documentation

void Aceobj::clear (  )  [inline]

References del(), and root.

Referenced by parse().

void Aceobj::parse ( const string &  str  ) 

this is the work horse to parse a ace object in Java string format into a generic tree format

References Acenode::addChild(), Acenode::addSibling(), Acenode::child, clear(), digestLine(), root, Acenode::sibling, and split().

Referenced by Aceobj(), cadbc::fetch(), and main().

bool Aceobj::empty (  )  [inline]

References root.

string Aceobj::getName (  )  const [inline]

References Acenode::asString(), and root.

Referenced by main().

Acenode * Aceobj::at ( const string &  tag_path,
int  pos = 0 
)

return a node_pointer to a tag_path separated by dot for example, DB_info.Accession. The pos parameter will position the pointer to the right of the path. Default is 0.

References Acenode::child, cmp_nocase(), root, Acenode::sibling, split(), Acenode::type, and Acenode::value.

Referenced by main().

Acenode * Aceobj::get ( const string &  tag,
int  pos = 0 
)

a deapth first search

References Acenode::child, find(), root, Acenode::sibling, Acenode::type, and Acenode::value.

Referenced by main().

void Aceobj::clear (  )  [inline]

References del(), and root.

void Aceobj::parse ( const string &  str  ) 

this is the work horse to parse a ace object in Java string format into a generic tree format

Acenode* Aceobj::at ( const string &  tag_path,
int  pos = 0 
)

return a node_pointer to a tag_path separated by dot for example, DB_info.Accession. The pos parameter will position the pointer to the right of the path. Default is 0.

Acenode* Aceobj::get ( const string &  tag,
int  pos = 0 
)

a deapth first search


Member Data Documentation

Acenode * Aceobj::root [private]

Referenced by at(), clear(), empty(), get(), getName(), parse(), and ~Aceobj().


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

Generated on Wed Oct 14 21:49:21 2009 for Softwares from Orpara by  doxygen 1.5.6