torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::XdlScanner Class Reference

#include <XdlScanner.hpp>

+ Inheritance diagram for torc::XdlScanner:
+ Collaboration diagram for torc::XdlScanner:

Public Member Functions

 XdlScanner (std::istream *arg_yyin=0, std::ostream *arg_yyout=0)
 Public constructor. More...
 
virtual ~XdlScanner ()
 Virtual destructor. More...
 
virtual XdlParser::token_type lex (XdlParser::semantic_type *yylval, XdlParser::location_type *yylloc)
 Main scanning function. More...
 
void set_debug (bool b)
 Enables or disables debugging output. More...
 

Protected Attributes

bool in_double_quote
 Flag to track whether we are inside a double quote. More...
 
int colon
 Variable to count the number of separator colons seen. More...
 
int quote
 Variable to count the number of double-quotes seen. More...
 
std::string last_string
 Last double-quoted string that we saw. More...
 

Friends

class XdlParser
 The XDL parser has full access to our internals. More...
 

Detailed Description

Definition at line 45 of file XdlScanner.hpp.

Constructor & Destructor Documentation

torc::XdlScanner::XdlScanner ( std::istream *  arg_yyin = 0,
std::ostream *  arg_yyout = 0 
)

Public constructor.

Scans the input stream for tokens, and sends any output to the output stream.

Parameters
arg_yyinThe input stream.
arg_yyoutThe output stream.

Definition at line 2023 of file XdlScanner.cpp.

2023 : XdlFlexLexer(in, out) {}
torc::XdlScanner::~XdlScanner ( )
virtual

Virtual destructor.

Definition at line 2025 of file XdlScanner.cpp.

2025 {}

Member Function Documentation

virtual XdlParser::token_type torc::XdlScanner::lex ( XdlParser::semantic_type yylval,
XdlParser::location_type yylloc 
)
virtual

Main scanning function.

void torc::XdlScanner::set_debug ( bool  b)

Enables or disables debugging output.

Definition at line 2027 of file XdlScanner.cpp.

2027  {
2028  yy_flex_debug = b;
2029  }

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class XdlParser
friend

The XDL parser has full access to our internals.

Definition at line 65 of file XdlScanner.hpp.

Field Documentation

int torc::XdlScanner::colon
protected

Variable to count the number of separator colons seen.

Definition at line 70 of file XdlScanner.hpp.

bool torc::XdlScanner::in_double_quote
protected

Flag to track whether we are inside a double quote.

Definition at line 68 of file XdlScanner.hpp.

std::string torc::XdlScanner::last_string
protected

Last double-quoted string that we saw.

Definition at line 74 of file XdlScanner.hpp.

int torc::XdlScanner::quote
protected

Variable to count the number of double-quotes seen.

Definition at line 72 of file XdlScanner.hpp.


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