MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
MFM::ConfigFunctionCall< GC > Class Template Referenceabstract

#include <ConfigFunctionCall.h>

Inheritance diagram for MFM::ConfigFunctionCall< GC >:
MFM::FunctionCallDisableTile< GC > MFM::FunctionCallGA< GC > MFM::FunctionCallRegisterElement< GC > MFM::FunctionCallSetElementParameter< GC >

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
 

Detailed Description

template<class GC>
class MFM::ConfigFunctionCall< GC >

An interface representing a function call that can appear in a config file

Member Function Documentation

template<class GC >
s32 MFM::ConfigFunctionCall< GC >::SkipToNextArg ( LineCountingByteSource in)
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.

template<class GC >
bool MFM::ConfigFunctionCall< GC >::SkipToNextExistingArg ( LineCountingByteSource in,
const char *  description 
)
protected

Skip w/s, read ','. If ',', skip w/s and return true. Otherwise, issue error message 'Missing argument, expected ' + description and return false.


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