add convert exception for sync-data-buffer
diff --git a/model/sync-data-buffer.h b/model/sync-data-buffer.h
index 269b379..f471b9a 100644
--- a/model/sync-data-buffer.h
+++ b/model/sync-data-buffer.h
@@ -25,6 +25,7 @@
#include <tinyxml.h>
#include <boost/shared_ptr.hpp>
+#include <boost/exception/all.hpp>
#include "sync-diff-state.h"
#include "sync-full-state.h"
@@ -87,13 +88,15 @@
SyncDataBuffer &operator<<(FullState &fs);
SyncDataBuffer &operator<<(DiffState &ds);
- FullState &operator>>(FullState &fs);
- DiffState &operator>>(DiffState &ds);
+ SyncDataBuffer &operator>>(FullState &fs);
+ SyncDataBuffer &operator>>(DiffState &ds);
private:
boost::shared_ptr<DataBuffer> m_dataBuffer;
};
+struct SyncDataBufferConvertError : virtual boost::exception {};
+
} // Sync
#endif // SYNC_STATE_H