COOPY » Guide
version 0.6.5
|
00001 #ifndef COOPY_FOLDTOOL 00002 #define COOPY_FOLDTOOL 00003 00004 #include <coopy/PolyBook.h> 00005 00006 #include <string> 00007 #include <set> 00008 00009 namespace coopy { 00010 namespace fold { 00011 class FoldOptions; 00012 class FoldTool; 00013 } 00014 } 00015 00016 class coopy::fold::FoldOptions { 00017 public: 00018 std::string tableName; 00019 coopy::store::PolyBook recipe; 00020 std::set<std::string> drops; 00021 bool fold; 00022 00023 FoldOptions() { 00024 fold = true; 00025 } 00026 }; 00027 00028 class coopy::fold::FoldTool { 00029 public: 00030 FoldTool(); 00031 00032 bool fold(coopy::store::PolyBook& src, 00033 coopy::store::PolyBook& dest, 00034 FoldOptions& options); 00035 00036 bool unfold(coopy::store::PolyBook& src, 00037 coopy::store::PolyBook& dest, 00038 FoldOptions& options); 00039 }; 00040 00041 #endif