#include <viz_storage.h>
Public Member Functions | |
virtual void | get (const boost::filesystem::path &path, ByteVec &result) |
virtual void | getAsync (const boost::filesystem::path &path, GetCallback callback) |
virtual void | getBatch (const std::vector< boost::filesystem::path > &paths, std::vector< ByteVec > &results) |
virtual std::string | getType () |
virtual void | putAsync (const boost::filesystem::path &path, const ByteVec &data, PutCallback callback) |
virtual void | putBatch (const std::vector< boost::filesystem::path > &paths, std::vector< ByteVec > &data) |
VizStorage (const boost::filesystem::path &path) | |
~VizStorage () | |
Private Member Functions | |
void | convert (const ByteVec &data_in, ByteVec &data_out) |
void | convertCb (const boost::filesystem::path &path, GetCallback cb, const ByteVec &data) |
Private Attributes | |
boost::shared_ptr< Storage > | storage |
unsigned | subtree_width |
boost::filesystem::path | tree |
Definition at line 9 of file viz_storage.h.
megatree::VizStorage::VizStorage | ( | const boost::filesystem::path & | path | ) |
Definition at line 8 of file viz_storage.cpp.
megatree::VizStorage::~VizStorage | ( | ) | [inline] |
Definition at line 13 of file viz_storage.h.
void megatree::VizStorage::convert | ( | const ByteVec & | data_in, |
ByteVec & | data_out | ||
) | [private] |
Definition at line 56 of file viz_storage.cpp.
void megatree::VizStorage::convertCb | ( | const boost::filesystem::path & | path, |
GetCallback | cb, | ||
const ByteVec & | data | ||
) | [private] |
Definition at line 46 of file viz_storage.cpp.
void megatree::VizStorage::get | ( | const boost::filesystem::path & | path, |
ByteVec & | result | ||
) | [virtual] |
Reimplemented from megatree::Storage.
Definition at line 20 of file viz_storage.cpp.
void megatree::VizStorage::getAsync | ( | const boost::filesystem::path & | path, |
GetCallback | callback | ||
) | [virtual] |
Implements megatree::Storage.
Definition at line 37 of file viz_storage.cpp.
void megatree::VizStorage::getBatch | ( | const std::vector< boost::filesystem::path > & | paths, |
std::vector< ByteVec > & | results | ||
) | [virtual] |
Reimplemented from megatree::Storage.
Definition at line 27 of file viz_storage.cpp.
virtual std::string megatree::VizStorage::getType | ( | ) | [inline, virtual] |
Implements megatree::Storage.
Definition at line 20 of file viz_storage.h.
virtual void megatree::VizStorage::putAsync | ( | const boost::filesystem::path & | path, |
const ByteVec & | data, | ||
PutCallback | callback | ||
) | [inline, virtual] |
Implements megatree::Storage.
Definition at line 25 of file viz_storage.h.
virtual void megatree::VizStorage::putBatch | ( | const std::vector< boost::filesystem::path > & | paths, |
std::vector< ByteVec > & | data | ||
) | [inline, virtual] |
Reimplemented from megatree::Storage.
Definition at line 23 of file viz_storage.h.
boost::shared_ptr<Storage> megatree::VizStorage::storage [private] |
Definition at line 31 of file viz_storage.h.
unsigned megatree::VizStorage::subtree_width [private] |
Definition at line 32 of file viz_storage.h.
boost::filesystem::path megatree::VizStorage::tree [private] |
Definition at line 26 of file viz_storage.h.