SerUt
Public Types | Public Member Functions

serut::FileSerializer Class Reference

A serializer for writing to and reading from files. More...

#include <fileserializer.h>

Inheritance diagram for serut::FileSerializer:
Inheritance graph
[legend]
Collaboration diagram for serut::FileSerializer:
Collaboration graph
[legend]

List of all members.

Public Types

enum  OpenMode { ReadOnly, WriteOnly, ReadWrite }
 

Specifies the mode in which a file can be opened.

More...

Public Member Functions

bool open (const std::string &filename, OpenMode m)
 Open a file.
bool close ()
 Close a previously opened file.

Detailed Description


Member Enumeration Documentation

Enumerator:
ReadOnly 

Read-only mode.

WriteOnly 

Write-only mode.

ReadWrite 

Both reading and writing.


Member Function Documentation

bool serut::FileSerializer::close ( )
bool serut::FileSerializer::open ( const std::string &  filename,
OpenMode  m 
)

Open a file.

Parameters:
filenameThe name of the file to open
mThe mode in which the file should be opened.

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