NIREP

NIREPResourceDatabase Class Reference

#include <NIREPResourceDatabase.h>

Inheritance diagram for NIREPResourceDatabase:
Collaboration diagram for NIREPResourceDatabase:

List of all members.

Public Types

enum  { LEFT = 0, RIGHT }

Public Member Functions

std::vector< ResourceGetResource ()
std::vector< std::string > GetTags ()
std::vector< std::string > GetTypeList ()
bool IsDefinedType (std::string type)
std::string ParseThisString (std::string str, const char *delimiter, short partition=LEFT)
void PrintSelf (ostream &os, vtkIndent indent)
std::string QueryFilename (std::string str)
std::map< std::string,
std::string > 
QueryList (std::string str)
DatasetSearchDataset (std::string str, Resource &resource, bool &empty)
std::map< std::string,
std::string > & 
SearchEntry (std::string str, Dataset &dataset, bool &empty)
ResourceSearchResource (std::string str, bool &empty)
 vtkTypeMacro (NIREPResourceDatabase, vtkNIREPXMLParser)
 vtkTypeMacro (vtkNIREPXMLParser, vtkXMLParser) void PrintSelf(ostream &os

Static Public Member Functions

static NIREPResourceDatabaseNew ()

Public Attributes

short cron
std::string current
std::vector< std::string > history
vtkIndent indent
std::string previous
std::vector< Resourceresource
std::vector< std::string > tag
std::vector< std::string > typelist

Protected Member Functions

virtual void CharacterDataHandler (const char *data=NULL, int length=0)
virtual bool DataIntegrityChecker (const char *data=NULL)
virtual void EndElement (const char *name)
 NIREPResourceDatabase ()
virtual void ProcessDataHandler (const char *data, int length)
virtual void RemoveTabsLinesSpacesReturns (char *&data, int &flen)
virtual void SearchEndElement (const char *data, int length)
virtual void SkipTabsLinesSpacesReturns (const char *&data, int &flen, int &i)
virtual void StartElement (const char *name, const char **atts)
std::string UpToLow (std::string str)
 ~NIREPResourceDatabase ()

Protected Attributes

const char * clabel
const char * label
const char * rlabel

Detailed Description

Definition at line 52 of file NIREPResourceDatabase.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
LEFT 
RIGHT 

Definition at line 85 of file NIREPResourceDatabase.h.


Constructor & Destructor Documentation

NIREPResourceDatabase::NIREPResourceDatabase ( void  ) [protected]

Definition at line 5 of file NIREPResourceDatabase.cxx.

NIREPResourceDatabase::~NIREPResourceDatabase ( void  ) [protected]

Definition at line 24 of file NIREPResourceDatabase.cxx.


Member Function Documentation

void NIREPResourceDatabase::CharacterDataHandler ( const char *  data = NULL,
int  length = 0 
) [protected, virtual]

Overriding the inheret CharacterDataHandler method form vtkXMLParser

Definition at line 111 of file NIREPResourceDatabase.cxx.

bool vtkNIREPXMLParser::DataIntegrityChecker ( const char *  data = NULL) [protected, virtual, inherited]

Take raw data, run simple data ingrity test. return true if passed

Definition at line 85 of file vtkNIREPXMLParser.cxx.

void NIREPResourceDatabase::EndElement ( const char *  name) [protected, virtual]

Overriding the inheret EndElement method form vtkXMLParser

Definition at line 97 of file NIREPResourceDatabase.cxx.

std::vector<Resource> NIREPResourceDatabase::GetResource ( ) [inline]

Definition at line 63 of file NIREPResourceDatabase.h.

std::vector< std::string > NIREPResourceDatabase::GetTags ( )

Definition at line 303 of file NIREPResourceDatabase.cxx.

std::vector< std::string > NIREPResourceDatabase::GetTypeList ( )

Definition at line 315 of file NIREPResourceDatabase.cxx.

bool NIREPResourceDatabase::IsDefinedType ( std::string  type)

Definition at line 141 of file NIREPResourceDatabase.cxx.

static NIREPResourceDatabase* NIREPResourceDatabase::New ( ) [static]

Reimplemented from vtkNIREPXMLParser.

std::string NIREPResourceDatabase::ParseThisString ( std::string  str,
const char *  delimiter,
short  partition = LEFT 
)

Definition at line 158 of file NIREPResourceDatabase.cxx.

void NIREPResourceDatabase::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [inline]

Definition at line 57 of file NIREPResourceDatabase.h.

void vtkNIREPXMLParser::ProcessDataHandler ( const char *  data,
int  length 
) [protected, virtual, inherited]

Process data before the expat library handlers do.

Definition at line 30 of file vtkNIREPXMLParser.cxx.

std::string NIREPResourceDatabase::QueryFilename ( std::string  str)

Definition at line 185 of file NIREPResourceDatabase.cxx.

std::map< std::string, std::string > NIREPResourceDatabase::QueryList ( std::string  str)

Definition at line 213 of file NIREPResourceDatabase.cxx.

void vtkNIREPXMLParser::RemoveTabsLinesSpacesReturns ( char *&  data,
int &  flen 
) [protected, virtual, inherited]

Remover tabs,newlines, spaces and returns

Definition at line 113 of file vtkNIREPXMLParser.cxx.

Dataset & NIREPResourceDatabase::SearchDataset ( std::string  str,
Resource resource,
bool &  empty 
)

Definition at line 264 of file NIREPResourceDatabase.cxx.

void vtkNIREPXMLParser::SearchEndElement ( const char *  data,
int  length 
) [protected, virtual, inherited]

Find the ending tag of the element and callback to the ProcessDataHandler

Definition at line 36 of file vtkNIREPXMLParser.cxx.

std::map< std::string, std::string > & NIREPResourceDatabase::SearchEntry ( std::string  str,
Dataset dataset,
bool &  empty 
)

Definition at line 283 of file NIREPResourceDatabase.cxx.

Resource & NIREPResourceDatabase::SearchResource ( std::string  str,
bool &  empty 
)

Definition at line 246 of file NIREPResourceDatabase.cxx.

void vtkNIREPXMLParser::SkipTabsLinesSpacesReturns ( const char *&  data,
int &  flen,
int &  i 
) [protected, virtual, inherited]

Skip update i, after skipping tabs, newlines, spaces and returns

Definition at line 131 of file vtkNIREPXMLParser.cxx.

void NIREPResourceDatabase::StartElement ( const char *  name,
const char **  atts 
) [protected, virtual]

Overriding the inheret StartElement method form vtkXMLParser

Definition at line 36 of file NIREPResourceDatabase.cxx.

std::string vtkNIREPXMLParser::UpToLow ( std::string  str) [protected, inherited]

Change upper case to lower case

Definition at line 140 of file vtkNIREPXMLParser.cxx.

NIREPResourceDatabase::vtkTypeMacro ( NIREPResourceDatabase  ,
vtkNIREPXMLParser   
)
vtkNIREPXMLParser::vtkTypeMacro ( vtkNIREPXMLParser  ,
vtkXMLParser   
) [inherited]

Member Data Documentation

const char* vtkNIREPXMLParser::clabel [protected, inherited]

Definition at line 62 of file vtkNIREPXMLParser.h.

Definition at line 77 of file NIREPResourceDatabase.h.

Definition at line 74 of file NIREPResourceDatabase.h.

std::vector<std::string> NIREPResourceDatabase::history

Definition at line 76 of file NIREPResourceDatabase.h.

vtkIndent vtkNIREPXMLParser::indent [inherited]

Definition at line 42 of file vtkNIREPXMLParser.h.

const char* vtkNIREPXMLParser::label [protected, inherited]

Definition at line 60 of file vtkNIREPXMLParser.h.

Definition at line 75 of file NIREPResourceDatabase.h.

Definition at line 81 of file NIREPResourceDatabase.h.

const char* vtkNIREPXMLParser::rlabel [protected, inherited]

Definition at line 61 of file vtkNIREPXMLParser.h.

std::vector<std::string> NIREPResourceDatabase::tag

Definition at line 80 of file NIREPResourceDatabase.h.

std::vector<std::string> NIREPResourceDatabase::typelist

Definition at line 79 of file NIREPResourceDatabase.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines