diff options
Diffstat (limited to 'src/stable/archivebase.h')
-rw-r--r-- | src/stable/archivebase.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/stable/archivebase.h b/src/stable/archivebase.h index e3d2b60..d846c27 100644 --- a/src/stable/archivebase.h +++ b/src/stable/archivebase.h | |||
@@ -11,6 +11,9 @@ | |||
11 | #include <stdint.h> | 11 | #include <stdint.h> |
12 | #include <unistd.h> | 12 | #include <unistd.h> |
13 | 13 | ||
14 | #include "bu/variant.h" | ||
15 | #include "bu/blob.h" | ||
16 | |||
14 | namespace Bu | 17 | namespace Bu |
15 | { | 18 | { |
16 | class ArchiveBase | 19 | class ArchiveBase |
@@ -23,6 +26,10 @@ namespace Bu | |||
23 | virtual void write( const void *pData, size_t iLength )=0; | 26 | virtual void write( const void *pData, size_t iLength )=0; |
24 | virtual void read( void *pData, size_t iLength )=0; | 27 | virtual void read( void *pData, size_t iLength )=0; |
25 | virtual bool isLoading()=0; | 28 | virtual bool isLoading()=0; |
29 | |||
30 | virtual void setProperty( const Bu::Blob &rKey, | ||
31 | const Bu::Variant &rValue )=0; | ||
32 | virtual Bu::Variant getProperty( const Bu::Blob &rKey ) const=0; | ||
26 | }; | 33 | }; |
27 | 34 | ||
28 | template<typename T> ArchiveBase &operator&&( ArchiveBase &ar, T &dat ) | 35 | template<typename T> ArchiveBase &operator&&( ArchiveBase &ar, T &dat ) |
@@ -68,8 +75,6 @@ namespace Bu | |||
68 | ArchiveBase &operator>>( ArchiveBase &ar, float &p ); | 75 | ArchiveBase &operator>>( ArchiveBase &ar, float &p ); |
69 | ArchiveBase &operator>>( ArchiveBase &ar, double &p ); | 76 | ArchiveBase &operator>>( ArchiveBase &ar, double &p ); |
70 | ArchiveBase &operator>>( ArchiveBase &ar, long double &p ); | 77 | ArchiveBase &operator>>( ArchiveBase &ar, long double &p ); |
71 | |||
72 | |||
73 | }; | 78 | }; |
74 | 79 | ||
75 | #endif | 80 | #endif |