lux/storage/data_unit.h

00001 #ifndef LUX_STORAGE_DATAUNIT_H
00002 #define LUX_STORAGE_DATAUNIT_H
00003 
00004 #include "luxio_data_unit.h"
00005 
00006 namespace Lux {
00007 
00008   template <class DataUnitPolicy>
00009   class DataUnit : public DataUnitPolicy {
00010   
00011   public:
00012     DataUnit(bool is_cleanup_needed = false)
00013     : DataUnitPolicy(is_cleanup_needed)
00014     {}
00015 
00016     DataUnit(void *data, unsigned int size, bool is_cleanup_needed = false)
00017     : DataUnitPolicy(data, size, is_cleanup_needed)
00018     {}
00019   };
00020 }
00021 
00022 typedef Lux::DataUnit<Lux::LuxIODataUnit> LuxDataUnit;
00023 
00024 #endif

Generated on Fri Feb 5 15:50:30 2010 for Lux by  doxygen 1.4.7