Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //serialize.h
- #ifndef SERIALIZE_H
- #define SERIALIZE_H
- #include <fstream>
- #include <iostream>
- #include <string>
- #include <typeinfo>
- #include "serializationexception.h"
- using std::string;
- using std::ofstream;
- using std::ifstream;
- using std::ios;
- using std::ios_base;
- template <class T>
- class Serialization{
- public:
- static T load(const string&) throw(SerializationException, fileUnAccessible, fileUnReadable);
- static void store(T, const string&) throw(SerializationException, fileUnAccessible, failedToWrite);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment