0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Hypertable::ClusterDefinitionFile::Token Class Reference

Cluster definition file token. More...

#include <Token.h>

Collaboration diagram for Hypertable::ClusterDefinitionFile::Token:
Collaboration graph
[legend]

Public Types

enum  Type {
  NONE =0, INCLUDE, VARIABLE, ROLE,
  TASK, FUNCTION, CONTROLFLOW, COMMENT,
  CODE, BLANKLINE
}
 Enumeration for token types. More...
 

Public Member Functions

void clear ()
 Clears token state. More...
 
void create_translator ()
 Creates a translator for the token. More...
 

Static Public Member Functions

static const char * type_to_text (int type)
 Returns human-readable string of token type. More...
 

Public Attributes

int type NONE
 Token type. More...
 
TranslatorPtr translator
 Translator object for token text. More...
 
string text
 Token text. More...
 
size_t line {}
 Starting line number of token. More...
 
string fname
 Pathname of file from which token was extracted. More...
 

Detailed Description

Cluster definition file token.

Definition at line 43 of file Token.h.

Member Function Documentation

void Hypertable::ClusterDefinitionFile::Token::clear ( )
inline

Clears token state.

Definition at line 60 of file Token.h.

void Token::create_translator ( )

Creates a translator for the token.

Creates an appropriate translator for the token and sets translator to point to it.

Definition at line 42 of file Token.cc.

const char * Token::type_to_text ( int  type)
static

Returns human-readable string of token type.

Parameters
typeToken type
Returns
Human-readable string of token type.

Definition at line 65 of file Token.cc.

Member Data Documentation

string Hypertable::ClusterDefinitionFile::Token::fname

Pathname of file from which token was extracted.

Definition at line 81 of file Token.h.

size_t Hypertable::ClusterDefinitionFile::Token::line {}

Starting line number of token.

Definition at line 79 of file Token.h.

int type Hypertable::ClusterDefinitionFile::Token::NONE

Token type.

Definition at line 73 of file Token.h.

string Hypertable::ClusterDefinitionFile::Token::text

Token text.

Definition at line 77 of file Token.h.

TranslatorPtr Hypertable::ClusterDefinitionFile::Token::translator

Translator object for token text.

Definition at line 75 of file Token.h.


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