Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

TXMLfile Class Reference

This class is a wrapper around the tinyxml software, specialized for GenBankXML format. More...

#include <TXMLfile.h>

List of all members.

Public Member Functions

 TXMLfile ()
 Constructor.
 ~TXMLfile ()
void load (wxString file)
 Load XML from file.
void parse (wxString text)
 Pass XML as string.
bool success ()
 Errors during parsing?
int countVectors ()
 How many vectors were made from the XML?
TVectorgetVector (int a)
 Returns pointer to one of the vectors.

Private Member Functions

void analyze (const TiXmlDocument &doc)
 Parse single/multiple sequences.
void readGBSeq (TiXmlNode *base)
 The actual parser.
wxString t (TiXmlText *txt)
 Safe text conversion.
wxString t (const char *txt)
 Safe text conversion.
void readGBqualifiers (TVectorItem &i, TiXmlNode *n)
 Part of the parser.
void readGBintervals (vector< TVectorItem > &vi, const TVectorItem &i, TiXmlNode *n)
 Part of the parser.
wxString get_sub_desc (TiXmlNode *base, int depth=0)

Private Attributes

bool _success
 Internal success marker.
wxArrayTVector _v
 The generated vectors.


Detailed Description

This class is a wrapper around the tinyxml software, specialized for GenBankXML format.


Constructor & Destructor Documentation

TXMLfile::TXMLfile  ) 
 

Constructor.

TXMLfile::~TXMLfile  )  [inline]
 


Member Function Documentation

void TXMLfile::analyze const TiXmlDocument doc  )  [private]
 

Parse single/multiple sequences.

int TXMLfile::countVectors  ) 
 

How many vectors were made from the XML?

wxString TXMLfile::get_sub_desc TiXmlNode base,
int  depth = 0
[private]
 

TVector * TXMLfile::getVector int  a  ) 
 

Returns pointer to one of the vectors.

void TXMLfile::load wxString  file  ) 
 

Load XML from file.

void TXMLfile::parse wxString  text  ) 
 

Pass XML as string.

void TXMLfile::readGBintervals vector< TVectorItem > &  vi,
const TVectorItem i,
TiXmlNode n
[private]
 

Part of the parser.

void TXMLfile::readGBqualifiers TVectorItem i,
TiXmlNode n
[private]
 

Part of the parser.

void TXMLfile::readGBSeq TiXmlNode base  )  [private]
 

The actual parser.

bool TXMLfile::success  )  [inline]
 

Errors during parsing?

wxString TXMLfile::t const char *  txt  )  [private]
 

Safe text conversion.

wxString TXMLfile::t TiXmlText txt  )  [private]
 

Safe text conversion.


Member Data Documentation

bool TXMLfile::_success [private]
 

Internal success marker.

wxArrayTVector TXMLfile::_v [private]
 

The generated vectors.


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:50 2006 for GENtle by  doxygen 1.4.1