All Classes Functions Variables Typedefs Friends Pages
IStorageUnit.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2012 Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef ISTORAGEUNIT_H__GLYMPSE__
8 #define ISTORAGEUNIT_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
16 /*O*public**/ struct IStorageUnit : public ICommon
17 {
18  public: virtual void save(const GPrimitive& data) = 0;
19 
20  public: virtual GPrimitive load() = 0;
21 
22  public: virtual void remove() = 0;
23 };
24 
25 /*C*/typedef O< IStorageUnit > GStorageUnit;
26 
27 }
28 
29 #endif // !ISTORAGEUNIT_H__GLYMPSE__