MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
|
#include <ConfigFunctionCall.h>
Public Member Functions | |
ConfigFunctionCall (const char *name) | |
bool | IsValid () |
const char * | GetFunctionName () |
virtual bool | Parse (ExternalConfig< GC > &ec)=0 |
virtual void | Print (ByteSink &in)=0 |
virtual void | Apply (ExternalConfig< GC > &ec)=0 |
Data Fields | |
const char *const | m_functionName |
Protected Member Functions | |
s32 | SkipToNextArg (LineCountingByteSource &in) |
bool | SkipToNextExistingArg (LineCountingByteSource &in, const char *description) |
Protected Attributes | |
bool | m_valid |
An interface representing a function call that can appear in a config file
|
protected |
Skip w/s, read ',' or ')'. If ',', skip w/s and return 1. If ')', return 0. If anything else, issue error message and return -1.
|
protected |
Skip w/s, read ','. If ',', skip w/s and return true. Otherwise, issue error message 'Missing argument, expected ' + description and return false.