MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Public Member Functions
MFM::ExternalConfig< typename > Class Template Reference

#include <ExternalConfig.h>

Public Member Functions

 ExternalConfig (Grid< GC > &grid)
 
void SetByteSource (ByteSource &byteSource, const char *label)
 
void SetErrorByteSink (ByteSink &errorsTo)
 
bool Read ()
 
void Write (ByteSink &byteSink)
 
void RegisterFunction (ConfigFunctionCall< GC > &fc)
 
bool RegisterElement (const UUID &uuid, OString16 &nick)
 
Element< CC > * LookupElement (const OString16 &nick) const
 
bool PlaceAtom (const Element< CC > &elt, s32 x, s32 y, const char *dataStr)
 
bool PlaceAtom (const Element< CC > &elt, s32 x, s32 y, const BitVector< BPA > &bv)
 
void SetTileToExecuteOnly (const SPoint &tileLoc, bool value)
 
LineCountingByteSourceGetByteSource ()
 

Detailed Description

template<typename>
class MFM::ExternalConfig< typename >

Structure for reading and writing the current grid configuration

Member Function Documentation

template<class GC >
bool MFM::ExternalConfig< GC >::Read ( )

Reads a configuration to the grid specified at construction.

Returns
true if the loading succeeded; false if the configuration file is invalid (in which case an error has been printed to errors, and the grid may be in a partially-loaded or otherwise incomplete state.)
template<class GC >
void MFM::ExternalConfig< GC >::Write ( ByteSink byteSink)

Writes the current grid configuration to the give ByteSink.


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