Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Statement Class Reference

#include <Statement.h>

Inheritance diagram for Statement:

Inheritance graph
[legend]
Collaboration diagram for Statement:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Statement (token_v &)
 ~Statement ()
void Display ()

Detailed Description

File ......... Statement.h Published .... 2004-05-17 Author ....... grymse@alhem.net

Definition at line 29 of file Statement.h.


Constructor & Destructor Documentation

Statement::Statement token_v tok  ) 
 

File ......... Statement.cpp Published .... 2004-05-17 Author ....... grymse@alhem.net

Definition at line 33 of file Statement.cpp.

References token_v.

00034 :Sequence(tok)
00035 {
00036 }

Statement::~Statement  ) 
 

Definition at line 39 of file Statement.cpp.

00040 {
00041 }


Member Function Documentation

void Statement::Display  )  [virtual]
 

Reimplemented from Sequence.

Definition at line 44 of file Statement.cpp.

References config, Sequence::GetExpr(), Sequence::GetFile(), Sequence::GetLine(), Sequence::IsExtern(), and Sequence::Tab().

00045 {
00046         if (IsExtern())
00047                 return;
00048         if (config["-xml"] == "true")
00049         {
00050                 printf("<statement file=\"%s\" line=\"%d\" value=\"%s\" />\n",
00051                         GetFile().c_str(),
00052                         GetLine(),
00053                         GetExpr().c_str());
00054                 return;
00055         }
00056         if (config["-dot"] == "true")
00057                 return;
00058         Tab();
00059         printf("%s",GetExpr().c_str());
00060         printf("\n");
00061 }


The documentation for this class was generated from the following files:
Generated for My SDL C++ Gui by doxygen 1.3.6