Public Types | Public Member Functions | Public Attributes | Private Attributes
Token Class Reference

#include <tokenizer.h>

List of all members.

Public Types

enum  {
  ok = 0, eof = -1, noAbierto = -2, errorLectura = -3,
  malFormato = -4
}
enum  {
  ok = 0, eof = -1, noAbierto = -2, errorLectura = -3,
  malFormato = -4
}

Public Member Functions

int abrirFichero (const char *f)
int abrirFichero (const char *f)
void cerrar ()
void cerrar ()
void destruyeToken ()
void destruyeToken ()
bool finFichero ()
bool finFichero ()
char * getLinea ()
char * getLinea ()
int getnPalabras ()
int getnPalabras ()
int getOffset ()
int getOffset ()
int lee (int ncampos, char *palInicial=NULL)
int lee (int ncampos, char *palInicial=NULL)
int leeLinea ()
int leeLinea ()
void reposicionarFichero (int off=0)
void reposicionarFichero (int off=0)
 Token ()
 Token ()
char * token (int n)
char * token (int n)
int tokenizar (const char *s)
int tokenizar (const char *s)
 ~Token ()
 ~Token ()

Public Attributes

int estado
char nomFichero [50]

Private Attributes

char auxLinea [TAM_LINEA]
char buffer [2 *TAM_BUFFER]
int cuantosBuffer1
int cuantosBuffer2
ifstream fichero
bool ficheroLeido
bool finFich
int indice
char linea [TAM_LINEA]
int nPalabras
char * palabras [MAX_PALABRAS]
bool tokenizado

Detailed Description

Definition at line 20 of file baPTAM/tokenizer.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ok 
eof 
noAbierto 
errorLectura 
malFormato 

Definition at line 45 of file baPTAM/tokenizer.h.

anonymous enum
Enumerator:
ok 
eof 
noAbierto 
errorLectura 
malFormato 

Definition at line 45 of file dorian/tokenizer.h.


Constructor & Destructor Documentation

Definition at line 3 of file baPTAM/tokenizer.cpp.

Definition at line 15 of file baPTAM/tokenizer.cpp.


Member Function Documentation

int Token::abrirFichero ( const char *  f)

Definition at line 37 of file baPTAM/tokenizer.cpp.

int Token::abrirFichero ( const char *  f)
void Token::cerrar ( ) [inline]

Definition at line 62 of file baPTAM/tokenizer.h.

void Token::cerrar ( ) [inline]

Definition at line 62 of file dorian/tokenizer.h.

Definition at line 21 of file baPTAM/tokenizer.cpp.

bool Token::finFichero ( ) [inline]

Definition at line 117 of file dorian/tokenizer.h.

bool Token::finFichero ( ) [inline]

Definition at line 117 of file baPTAM/tokenizer.h.

char* Token::getLinea ( ) [inline]

Definition at line 112 of file baPTAM/tokenizer.h.

char* Token::getLinea ( ) [inline]

Definition at line 112 of file dorian/tokenizer.h.

int Token::getnPalabras ( ) [inline]

Definition at line 107 of file dorian/tokenizer.h.

int Token::getnPalabras ( ) [inline]

Definition at line 107 of file baPTAM/tokenizer.h.

int Token::getOffset ( ) [inline]

Definition at line 71 of file dorian/tokenizer.h.

int Token::getOffset ( ) [inline]

Definition at line 71 of file baPTAM/tokenizer.h.

int Token::lee ( int  ncampos,
char *  palInicial = NULL 
)
int Token::lee ( int  ncampos,
char *  palInicial = NULL 
)

Definition at line 134 of file baPTAM/tokenizer.cpp.

int Token::leeLinea ( )
int Token::leeLinea ( )

Definition at line 67 of file baPTAM/tokenizer.cpp.

void Token::reposicionarFichero ( int  off = 0) [inline]

Definition at line 66 of file baPTAM/tokenizer.h.

void Token::reposicionarFichero ( int  off = 0) [inline]

Definition at line 66 of file dorian/tokenizer.h.

char* Token::token ( int  n)
char * Token::token ( int  n)

Definition at line 189 of file baPTAM/tokenizer.cpp.

int Token::tokenizar ( const char *  s)
int Token::tokenizar ( const char *  s)

Definition at line 147 of file baPTAM/tokenizer.cpp.


Member Data Documentation

char Token::auxLinea [private]

Definition at line 37 of file baPTAM/tokenizer.h.

char Token::buffer [private]

Definition at line 25 of file baPTAM/tokenizer.h.

int Token::cuantosBuffer1 [private]

Definition at line 26 of file baPTAM/tokenizer.h.

int Token::cuantosBuffer2 [private]

Definition at line 26 of file baPTAM/tokenizer.h.

Definition at line 47 of file baPTAM/tokenizer.h.

ifstream Token::fichero [private]

Definition at line 23 of file baPTAM/tokenizer.h.

Definition at line 29 of file baPTAM/tokenizer.h.

bool Token::finFich [private]

Definition at line 31 of file baPTAM/tokenizer.h.

int Token::indice [private]

Definition at line 28 of file baPTAM/tokenizer.h.

char Token::linea [private]

Definition at line 33 of file baPTAM/tokenizer.h.

Definition at line 46 of file baPTAM/tokenizer.h.

int Token::nPalabras [private]

Definition at line 40 of file baPTAM/tokenizer.h.

char * Token::palabras [private]

Definition at line 42 of file baPTAM/tokenizer.h.

Definition at line 35 of file baPTAM/tokenizer.h.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:26