#include <Aceobj.h>
Public Member Functions | |
| Aceobj () | |
| Aceobj (const string &str) | |
| ~Aceobj () | |
| void | clear () |
| void | parse (const string &str) |
| bool | empty () |
| string | getName () const |
| Acenode * | at (const string &tag_path, int pos=0) |
| Acenode * | get (const string &tag, int pos=0) |
| Aceobj () | |
| Aceobj (const string &str) | |
| ~Aceobj () | |
| void | clear () |
| void | parse (const string &str) |
| Acenode * | at (const string &tag_path, int pos=0) |
| Acenode * | get (const string &tag, int pos=0) |
Private Attributes | |
| Acenode * | 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] |
| 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] |
| 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] |
| 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::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
Acenode * Aceobj::root [private] |
1.5.6