30 bool write(
const T & value);
33 bool write(
const T * tabValue,
size_t nbValue);
36 bool write(
const T * tabValue,
size_t nbRow,
size_t nbCol,
size_t padding = 0lu);
42 bool read(T * tabValue,
size_t nbValue);
45 bool read(T * tabValue,
size_t nbRow,
size_t nbCol,
size_t padding = 0lu);
Path of a directory or a file.
void initialisationPStream()
Initialisation function of the class PStream.
PStream()
Default constructor of PStream.
bool write(const T &value)
Write a value into the stream.
FILE * p_fp
Pointer to the main stream.
PStream & operator<<(const T &value)
Flux operator for stream.
virtual ~PStream()
Destructor of PStream.
bool isOpen() const
Say if the stream is opened.
bool open(const PPath &fileName, const PString &mode="r")
Open the current stream.
PStream & operator>>(T &value)
Flux operator for stream.
bool read(T &value)
Read a value from the stream.
void close()
Close the stream.