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
MFM::ZStringByteSource Class Reference

#include <ZStringByteSource.h>

Inheritance diagram for MFM::ZStringByteSource:
MFM::CharBufferByteSource MFM::ByteSource

Public Member Functions

 ZStringByteSource (const char *input)
 
void Reset (const char *newString=0)
 
- Public Member Functions inherited from MFM::CharBufferByteSource
 CharBufferByteSource (const char *input, u32 length)
 
virtual int ReadByte ()
 
void ChangeBuffer (const char *newBuffer, u32 bufferLength)
 
void Reset ()
 
- Public Member Functions inherited from MFM::ByteSource
 ByteSource ()
 
s32 Read ()
 
void Unread ()
 
s32 Peek ()
 
virtual ~ByteSource ()
 
u32 GetBytesRead ()
 
bool Scan (u64 &result)
 
bool Scan (s32 &result, Format::Type code=Format::DEC, u32 fieldWidth=U32_MAX)
 
bool Scan (u32 &result, Format::Type code=Format::DEC, u32 fieldWidth=U32_MAX)
 
bool Scan (ByteSerializable &byteSerializable, s32 argument=0)
 
bool ScanLexDigits (u32 &digits)
 
bool Scan (ByteSink &result, const u32 fieldWidth)
 
s32 ScanSet (ByteSink &result, const char *setSpec)
 
s32 SkipSet (const char *setSpec)
 
s32 ScanSetFormat (ByteSink &result, const char *&setSpec)
 
bool ScanIdentifier (ByteSink &result)
 
bool ScanHex (ByteSink &result)
 
bool ScanBinary (ByteSink &result)
 
bool ScanCamelIdentifier (ByteSink &result)
 
s32 SkipWhitespace ()
 
s32 Scanf (const char *format,...)
 
s32 Vscanf (const char *format, va_list &ap)
 

Additional Inherited Members

- Static Public Attributes inherited from MFM::ByteSource
static const char * WHITESPACE_CHARS = " \n\t\v"
 
static const char * WHITESPACE_SET = "[ \n\t\v]"
 
static const char * NON_WHITESPACE_SET = "[^ \n\t\v]"
 

Detailed Description

A ByteSource which is backed by a null-terminated string.

Constructor & Destructor Documentation

MFM::ZStringByteSource::ZStringByteSource ( const char *  input)
inline

Creates a new ZStringByteSource backed by a null-terminated string.

Parameters
inputThe null-terminated String to be used as the source for bytes of this ByteSource.

Member Function Documentation

void MFM::ZStringByteSource::Reset ( const char *  newString = 0)
inline

Resets this ZStringByteSource to either a specified string or, if the specified string is NULL, the string which was already loaded into this ZStringByteSource .

Parameters
newStringThe new String which will back this ZStringByteSource. If NULL, acts as if this argument is the string that is currently backing this ZStringByteSource.

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