SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Io
Class FileSerializer

NonCopyableType
   |
   +-ISerializer
        |
        +-FileSerializer

Implemented in:
Platform.Io.FileSerializer.h

class FileSerializer:
public ISerializer

Serializes data to a file.

Fields inherited from class ISerializercollapse
byteCount

Constructor Summarycollapse
FileSerializer(const Path& path, FileMode mode = FileMode_TruncateOrCreate, FileAccess access = FileAccess_Write)
          Constructor.
~FileSerializer()
          Destructor.

Method Summarycollapse
Void close()
          Closes the serializer stream.
Void flush()
          Flushes the serializer stream.
protected Void serialize(Byte value)
          Serializes a single byte of data.

Methods inherited from class ISerializercollapse
close, count, flush, serialize, serialize, serializeAsByte, serializeAsInt, serializeBytes

 

Constructor Detail

FileSerializer[inline]

FileSerializer(const Path& path, FileMode mode = FileMode_TruncateOrCreate, FileAccess access = FileAccess_Write)

Constructor.

Parameters:
path - path to the file to hold serialized data
mode - file open mode
access - file access mode

~FileSerializer[inline]

~FileSerializer()

Destructor.

 

Method Detail

close[virtual, inline]

Void close()

Closes the serializer stream.

Overrides:
ISerializer::close

flush[virtual, inline]

Void flush()

Flushes the serializer stream.

Overrides:
ISerializer::flush

serialize[virtual, inline]

protected Void serialize(Byte value)

Serializes a single byte of data.

Parameters:
value - a byte
Overrides:
ISerializer::serialize


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND