class
FileEncoder
Encodes the provided object to the specified file using the RTTI system.
Public
Constructors
FileEncoder
FileEncoder(const Path &fileLocation)
FileEncoder
FileEncoder(const SPtr<DataStream> &stream)
Methods
Encode
Parses the provided object, serializes all of its data as specified by its RTTIType and saves the serialized data to the provided file location.
- object
- Object to encode.
- context
- Optional object that will be passed along to all serialized objects through their operation notify methods . Can be used for controlling serialization, maintaining state or sharing information between objects during serialization.
Encode
void Encode(IReflectable *object)
Overload of Encode(IReflectable*, RTTIOperationContext & ) that uses a default-constructed context.
Private
Fields
mOutputStream
SPtr<DataStream> mOutputStream