OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgDB::Field Class Reference

#include <Input.h>

Public Types

enum  { MIN_CACHE_SIZE = 256 }
 
enum  FieldType {
  OPEN_BRACKET, CLOSE_BRACKET, STRING, WORD,
  REAL, INTEGER, BLANK, UNINITIALISED
}
 

Public Member Functions

 Field ()
 
 Field (const Field &field)
 
virtual ~Field ()
 
virtual Fieldoperator= (const Field &ic)
 
void reset ()
 
void addChar (char c)
 
int getNoCharacters () const
 
void setWithinQuotes (bool withinQuotes=true)
 
bool getWithinQuotes ()
 
void setNoNestedBrackets (int no)
 
int getNoNestedBrackets ()
 
FieldType getFieldType () const
 
bool isValid () const
 
bool isOpenBracket () const
 
bool isCloseBracket () const
 
bool isWord () const
 
bool matchWord (const char *str) const
 
bool matchWord (const char *str, int noCharacters) const
 
bool isString () const
 
bool matchString (const char *str) const
 
bool matchString (const char *str, int noCharacters) const
 
bool isQuotedString () const
 
const char * getStr () const
 
char * takeStr ()
 
bool isInt () const
 
bool matchInt (int i) const
 
bool getInt (int &i) const
 
bool isUInt () const
 
bool matchUInt (unsigned int i) const
 
bool getUInt (unsigned int &i) const
 
bool isFloat () const
 
bool matchFloat (float f) const
 
bool getFloat (float &f) const
 
bool getFloat (double &f) const
 

Static Public Member Functions

static FieldType calculateFieldType (const char *str, bool withinQuotes=false)
 

Protected Member Functions

void _init ()
 
void _free ()
 
void _copy (const Field &ic)
 

Protected Attributes

int _fieldCacheCapacity
 
int _fieldCacheSize
 
char * _fieldCache
 
FieldType _fieldType
 
bool _withinQuotes
 
int _noNestedBrackets
 

Detailed Description

deprecated.

Definition at line 53 of file Input.h.

Member Enumeration Documentation

anonymous enum
Enumerator
MIN_CACHE_SIZE 

Definition at line 57 of file Input.h.

Enumerator
OPEN_BRACKET 
CLOSE_BRACKET 
STRING 
WORD 
REAL 
INTEGER 
BLANK 
UNINITIALISED 

Definition at line 77 of file Input.h.

Constructor & Destructor Documentation

osgDB::Field::Field ( )
osgDB::Field::Field ( const Field field)
virtual osgDB::Field::~Field ( )
virtual

Member Function Documentation

void osgDB::Field::_copy ( const Field ic)
protected
void osgDB::Field::_free ( )
protected
void osgDB::Field::_init ( )
protected
void osgDB::Field::addChar ( char  c)
static FieldType osgDB::Field::calculateFieldType ( const char *  str,
bool  withinQuotes = false 
)
static
FieldType osgDB::Field::getFieldType ( ) const
bool osgDB::Field::getFloat ( float &  f) const
bool osgDB::Field::getFloat ( double &  f) const
bool osgDB::Field::getInt ( int &  i) const
int osgDB::Field::getNoCharacters ( ) const
inline

Definition at line 69 of file Input.h.

int osgDB::Field::getNoNestedBrackets ( )
const char* osgDB::Field::getStr ( ) const
bool osgDB::Field::getUInt ( unsigned int &  i) const
bool osgDB::Field::getWithinQuotes ( )
bool osgDB::Field::isCloseBracket ( ) const
bool osgDB::Field::isFloat ( ) const
bool osgDB::Field::isInt ( ) const
bool osgDB::Field::isOpenBracket ( ) const
bool osgDB::Field::isQuotedString ( ) const
bool osgDB::Field::isString ( ) const
bool osgDB::Field::isUInt ( ) const
bool osgDB::Field::isValid ( ) const
bool osgDB::Field::isWord ( ) const
bool osgDB::Field::matchFloat ( float  f) const
bool osgDB::Field::matchInt ( int  i) const
bool osgDB::Field::matchString ( const char *  str) const
bool osgDB::Field::matchString ( const char *  str,
int  noCharacters 
) const
bool osgDB::Field::matchUInt ( unsigned int  i) const
bool osgDB::Field::matchWord ( const char *  str) const
bool osgDB::Field::matchWord ( const char *  str,
int  noCharacters 
) const
virtual Field& osgDB::Field::operator= ( const Field ic)
virtual
void osgDB::Field::reset ( )
void osgDB::Field::setNoNestedBrackets ( int  no)
void osgDB::Field::setWithinQuotes ( bool  withinQuotes = true)
char* osgDB::Field::takeStr ( )

Member Data Documentation

char* osgDB::Field::_fieldCache
protected

Definition at line 131 of file Input.h.

int osgDB::Field::_fieldCacheCapacity
protected

Definition at line 129 of file Input.h.

int osgDB::Field::_fieldCacheSize
protected

Definition at line 130 of file Input.h.

FieldType osgDB::Field::_fieldType
mutableprotected

Definition at line 133 of file Input.h.

int osgDB::Field::_noNestedBrackets
protected

Definition at line 137 of file Input.h.

bool osgDB::Field::_withinQuotes
protected

Definition at line 135 of file Input.h.


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