OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
CSMFilter::Token Struct Reference
Collaboration diagram for CSMFilter::Token:

Public Types

enum  Type {
  Type_EOS, Type_None, Type_String, Type_Number,
  Type_Open, Type_Close, Type_OpenSquare, Type_CloseSquare,
  Type_Comma, Type_OneShot, Type_Keyword_True, Type_Keyword_False,
  Type_Keyword_And, Type_Keyword_Or, Type_Keyword_Not, Type_Keyword_Text,
  Type_Keyword_Value
}
 

Public Member Functions

 Token (Type type=Type_None)
 
 Token (Type type, const std::string &string)
 Non-string type that can also be interpreted as a string. More...
 
 Token (const std::string &string)
 
 Token (double number)
 
 operator bool () const
 
bool isString () const
 

Public Attributes

Type mType
 
std::string mString
 
double mNumber
 

Member Enumeration Documentation

Enumerator
Type_EOS 
Type_None 
Type_String 
Type_Number 
Type_Open 
Type_Close 
Type_OpenSquare 
Type_CloseSquare 
Type_Comma 
Type_OneShot 
Type_Keyword_True 
Attention
Keyword enums must be arranged continuously.
Type_Keyword_False 
Type_Keyword_And 
Type_Keyword_Or 
Type_Keyword_Not 
Type_Keyword_Text 
Type_Keyword_Value 

Constructor & Destructor Documentation

CSMFilter::Token::Token ( Type  type = Type_None)
CSMFilter::Token::Token ( Type  type,
const std::string &  string 
)

Non-string type that can also be interpreted as a string.

CSMFilter::Token::Token ( const std::string &  string)
CSMFilter::Token::Token ( double  number)

Member Function Documentation

bool CSMFilter::Token::isString ( ) const

Here is the caller graph for this function:

CSMFilter::Token::operator bool ( ) const

Member Data Documentation

double CSMFilter::Token::mNumber
std::string CSMFilter::Token::mString
Type CSMFilter::Token::mType

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