24 std::cout <<
"testPStream : val = " << val << std::endl;
30 int tabInt [] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
31 int tabIntRead [] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
35 strOut.
write(tabInt, 10lu);
40 strIn.
read(tabIntRead, 10lu);
42 std::cout <<
"testPStreamTable : tabIntRead[9] = " << tabIntRead[9] << std::endl;
43 for(
size_t i(0); i < 10lu; ++i){
50 int tabInt [] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
51 int tabIntRead [] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
55 strOut.
write(tabInt, 2lu, 5lu, 0lu);
60 strIn.
read(tabIntRead, 2lu, 5lu, 0lu);
62 std::cout <<
"testPStreamMatrix : tabIntRead[9] = " << tabIntRead[9] << std::endl;
63 for(
size_t i(0); i < 10lu; ++i){
68 int main(
int argc,
char** argv){
Path of a directory or a file.
bool write(const T &value)
Write a value into the stream.
bool open(const PPath &fileName, const PString &mode="r")
Open the current stream.
bool read(T &value)
Read a value from the stream.
void close()
Close the stream.
#define phoenix_assert(isOk)
int main(int argc, char **argv)
void testPStream()
Test the PStream.
void testPStreamMatrix()
Test the PStream.
void testPStreamTable()
Test the PStream.