GLIMSView Source Code Documentation

ODLParser Class Reference

#include <odlparser.h>

List of all members.


Detailed Description

Definition at line 13 of file odlparser.h.


Public Member Functions

 ODLParser (const std::string &odldata)
const ODLTreegetObject (const std::string &objname)
const ODLTreegetObject (const ODLTree &tree, const std::string &objname) const
const ODLTreegetGroup (const std::string &objname)
const ODLTreegetGroup (const ODLTree &tree, const std::string &grpname) const
ODLTreetop ()

Protected Member Functions

std::string ucase (const std::string &str)
std::string trim (const std::string &str)
bool parse (ODLTree &tree)
int _uint_min (unsigned int v1, unsigned int v2)

Protected Attributes

ODLTree mTop
std::string mODLData
std::string::size_type jpos
std::string::size_type ipos

Constructor & Destructor Documentation

ODLParser::ODLParser ( const std::string &  odldata  ) 

Definition at line 4 of file odlparser.cpp.

References ipos, jpos, mTop, and parse().

Here is the call graph for this function:


Member Function Documentation

std::string ODLParser::ucase ( const std::string &  str  )  [protected]

Definition at line 126 of file odlparser.cpp.

Referenced by parse().

std::string ODLParser::trim ( const std::string &  str  )  [protected]

Definition at line 93 of file odlparser.cpp.

References ipos, and jpos.

Referenced by parse().

bool ODLParser::parse ( ODLTree tree  )  [protected]

Definition at line 11 of file odlparser.cpp.

References _uint_min(), ODLTree::addChild(), ODLTree::addElem(), ODLTree::getLastChild(), ipos, jpos, mODLData, ODLGROUP, ODLOBJECT, trim(), and ucase().

Referenced by ODLParser().

Here is the call graph for this function:

int ODLParser::_uint_min ( unsigned int  v1,
unsigned int  v2 
) [inline, protected]

Definition at line 25 of file odlparser.h.

Referenced by parse().

const ODLTree* ODLParser::getObject ( const std::string &  objname  )  [inline]

const ODLTree * ODLParser::getObject ( const ODLTree tree,
const std::string &  objname 
) const

Definition at line 136 of file odlparser.cpp.

References ODLTree::getChild(), ODLTree::getName(), ODLTree::getNumChild(), and getObject().

Here is the call graph for this function:

const ODLTree* ODLParser::getGroup ( const std::string &  objname  )  [inline]

Definition at line 39 of file odlparser.h.

References mTop.

const ODLTree * ODLParser::getGroup ( const ODLTree tree,
const std::string &  grpname 
) const

Definition at line 150 of file odlparser.cpp.

ODLTree& ODLParser::top (  )  [inline]

Definition at line 46 of file odlparser.h.

References mTop.


Member Data Documentation

ODLTree ODLParser::mTop [protected]

Definition at line 15 of file odlparser.h.

Referenced by getGroup(), getObject(), ODLParser(), and top().

std::string ODLParser::mODLData [protected]

Definition at line 16 of file odlparser.h.

Referenced by parse().

std::string::size_type ODLParser::jpos [protected]

Definition at line 18 of file odlparser.h.

Referenced by ODLParser(), parse(), and trim().

std::string::size_type ODLParser::ipos [protected]

Definition at line 19 of file odlparser.h.

Referenced by ODLParser(), parse(), and trim().


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

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov