Guest User

Neel Basu

a guest
Jul 14th, 2008
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. //serialize.h
  2. #ifndef SERIALIZE_H
  3. #define SERIALIZE_H
  4.  
  5. #include <fstream>
  6. #include <iostream>
  7. #include <string>
  8. #include <typeinfo>
  9. #include "serializationexception.h"
  10.  
  11. using std::string;
  12. using std::ofstream;
  13. using std::ifstream;
  14. using std::ios;
  15. using std::ios_base;
  16.  
  17. template <class T>
  18. class Serialization{
  19.     public:
  20.         static T load(const string&)        throw(SerializationException, fileUnAccessible, fileUnReadable);
  21.         static void store(T, const string&) throw(SerializationException, fileUnAccessible, failedToWrite);
  22. };
  23.  
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment