gsgl::io Namespace Reference


Classes

class  data_stream
 A data stream. More...
class  directory
 Represents a directory on disk. More...
class  fd_stream
 A data stream on a file. More...
class  file
 Represents a file on disk. More...
class  file_stream
 Base class for streams on a file. More...
class  ft_stream
 A text stream on a file. More...
class  printable
class  serializable
class  text_stream
 A text stream. More...

Enumerations

enum  open_mode {
  FILE_OPEN_READ = 1 << 0, FILE_OPEN_WRITE = 1 << 1, FILE_OPEN_APPEND = 1 << 2, FILE_OPEN_TEXT = 1 << 3,
  FILE_OPEN_BINARY = 1 << 4
}
 Modes for opening files. More...

Functions

data_streamoperator<< (data_stream &st, const serializable &ss)
text_streamoperator<< (text_stream &s, const printable &p)
data_streamoperator>> (data_stream &st, serializable &ss)
text_streamoperator>> (text_stream &s, printable &p)

Variables

const gsgl::index_t MAX_PATH_SIZE = 1024


Enumeration Type Documentation

enum open_mode

Modes for opening files.

Enumerator:
FILE_OPEN_READ 
FILE_OPEN_WRITE 
FILE_OPEN_APPEND 
FILE_OPEN_TEXT 
FILE_OPEN_BINARY 

Definition at line 50 of file fstream.hpp.


Function Documentation

DATA_API data_stream & operator<< ( data_stream &  st,
const serializable &  ss 
)

Definition at line 227 of file stream.cpp.

References serializable::to_stream().

DATA_API text_stream & operator<< ( text_stream &  s,
const printable &  p 
)

Definition at line 108 of file stream.cpp.

References printable::to_stream().

DATA_API data_stream & operator>> ( data_stream &  st,
serializable &  ss 
)

Definition at line 278 of file stream.cpp.

References serializable::from_stream().

DATA_API text_stream & operator>> ( text_stream &  s,
printable &  p 
)

Definition at line 167 of file stream.cpp.

References printable::from_stream().


Variable Documentation

DATA_API const gsgl::index_t MAX_PATH_SIZE = 1024

Definition at line 57 of file file.cpp.

Referenced by directory::directory(), file::file(), and directory::get_paths().


Generated on Sat Mar 1 13:50:06 2008 for Periapsis Project by  doxygen 1.5.5