obby::serialise::token Class Reference

#include <token.hpp>

List of all members.

Public Types

enum  type {
  TYPE_UNKNOWN, TYPE_INDENTATION, TYPE_EXCLAMATION, TYPE_IDENTIFIER,
  TYPE_STRING, TYPE_ASSIGNMENT
}

Public Member Functions

 token (type type, const std::string &text, unsigned int line)
type get_type () const
const std::string & get_text () const
unsigned int get_line () const

Private Attributes

type m_type
std::string m_text
unsigned int m_line


Detailed Description

Definition at line 31 of file token.hpp.


Member Enumeration Documentation

enum obby::serialise::token::type

Enumerator:
TYPE_UNKNOWN 
TYPE_INDENTATION 
TYPE_EXCLAMATION 
TYPE_IDENTIFIER 
TYPE_STRING 
TYPE_ASSIGNMENT 

Definition at line 34 of file token.hpp.


Constructor & Destructor Documentation

obby::serialise::token::token ( type  type,
const std::string &  text,
unsigned int  line 
)

Definition at line 328 of file token.cpp.


Member Function Documentation

obby::serialise::token::type obby::serialise::token::get_type (  )  const

Definition at line 337 of file token.cpp.

References m_type.

const std::string & obby::serialise::token::get_text (  )  const

Definition at line 342 of file token.cpp.

References m_text.

unsigned int obby::serialise::token::get_line (  )  const

Definition at line 347 of file token.cpp.

References m_line.


Member Data Documentation

type obby::serialise::token::m_type [private]

Definition at line 55 of file token.hpp.

Referenced by get_type().

std::string obby::serialise::token::m_text [private]

Definition at line 56 of file token.hpp.

Referenced by get_text().

unsigned int obby::serialise::token::m_line [private]

Definition at line 57 of file token.hpp.

Referenced by get_line().


The documentation for this class was generated from the following files:
Generated on Fri Jan 11 10:01:33 2008 for obby by  doxygen 1.5.1