scunit.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "scunit.h"

Go to the source code of this file.

Classes

class  ScaleUnitReference
class  Parser
 This parser is in fact a lexical analyzer for ScaleUnit's It matches Numbers (IsNumeric) & Qualifiers (IsCharUnitType). Anything else is considered Unknown. This is just a fill in while I consider how to provide something more generic. The code is blardy awful, partly because of lack of support in the StringBase class. To use it (not that you would), do something like: MonoOn: Parser myParser(stringToParse); if (PrepareForParse() == FALSE) ... if (GetToken() == Parser::TK_QUALIFIER)... myQualifier = GetSemanticValue(); MonoOff: Repeated calls to GetToken() will move along the stringToParse until the end of the string is reached when TK_EOS is returned. More...

Defines

#define new   CAM_DEBUG_NEW
#define ERROR2IFNOTCLASS(pc, classname)

Functions

 CC_IMPLEMENT_DYNAMIC (ScaleUnitReference, ListItem)


Define Documentation

#define ERROR2IFNOTCLASS pc,
classname   ) 
 

Value:

ERROR2IF(pc == NULL || !pc->IS_KIND_OF(classname), \
                                            FALSE, #classname "is not");

Definition at line 114 of file scunit.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 112 of file scunit.cpp.


Function Documentation

CC_IMPLEMENT_DYNAMIC ScaleUnitReference  ,
ListItem 
 


Generated on Sat Nov 10 03:49:20 2007 for Camelot by  doxygen 1.4.4