+ // ------------------------
+ // Writting a binary file
+ // ------------------------
+
+ bool openForWriting(); // binary writing only
+
+ template <typename T>
+ bool write( const T* values, size_t nbTValues )
+ {
+ return writeRaw((const void*) values, nbTValues * sizeof(T));
+ }
+
+ template <typename T>
+ bool write( const T& value )
+ {
+ return writeRaw((const void*) & value, sizeof(T));
+ }
+
+ bool writeRaw(const void* data, size_t size);
+