#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) |
|
Value: Definition at line 114 of file scunit.cpp. |
|
Definition at line 112 of file scunit.cpp. |
|
|