Added TextCollection::Save() and TextCollection::Load() functionality
[SXSI/TextCollection.git] / TextCollection.h
index e7e36e2..e7f0d4b 100644 (file)
@@ -56,14 +56,16 @@ namespace SXSI
          * New samplerate can be given, otherwise will use the one specified in the save file!
          * Note: This is not a static method; call InitTextCollection() first to get the object handle.
          *
-         * Throws an exception if something goes wrong (unlikely since we are passing a file descriptor).
+         * Throws an exception if std::fread() fails.
          * 
          */
         virtual void Load(FILE *, unsigned samplerate = 0) = 0;
         /**
          * Save data structure into a file
+         * 
+         * Throws an exception if std::fwrite() fails.
          */
-        virtual void Save(FILE *) = 0;
+        virtual void Save(FILE *) const = 0;
         /**
          * Virtual destructor
          */