Go to the documentation of this file.00001 #ifndef MEGATREE_STORAGE_FACTORY_H
00002 #define MEGATREE_STORAGE_FACTORY_H
00003
00004 #include <megatree/storage.h>
00005
00006 namespace megatree {
00007
00008 enum { UNKNOWN_FORMAT, NORMAL_FORMAT, VIZ_FORMAT };
00009
00010 boost::shared_ptr<Storage> openStorage(const boost::filesystem::path &path, unsigned format=NORMAL_FORMAT);
00011 boost::shared_ptr<TempDir> createTempDir(const boost::filesystem::path &parent, bool remove=true);
00012
00013 void removePath(const boost::filesystem::path &path);
00014
00015 }
00016
00017
00018 #endif