![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtExtractionOperationRecord.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtExtractionOperationRecord_H_ 00014 #define DtExtractionOperationRecord_H_ 00015 00016 #include <makArchives/makArchives.h> 00017 00018 namespace makArchives 00019 { 00022 class DT_DLL_MAKARCHIVES DtExtractionOperationRecord 00023 { 00024 00025 public: 00026 00028 DtExtractionOperationRecord(); 00029 00031 DtExtractionOperationRecord(const DtExtractionOperationRecord& orig); 00032 00034 DtExtractionOperationRecord& operator=(const DtExtractionOperationRecord& orig); 00035 00037 ~DtExtractionOperationRecord(); 00038 00040 void setExpression(const std::string& expression); 00041 00043 const std::string& expression() const; 00044 00046 void setExpressionIsRegEx(bool isRegEx); 00047 00049 bool expressionIsRegEx() const; 00050 00052 void setKey(const std::string& key); 00053 00055 const std::string& key() const; 00056 00058 void setCount( unsigned int count); 00059 00061 unsigned int count() const; 00062 00063 protected: 00064 00065 friend class boost::serialization::access; 00066 00070 template<class Archive> 00071 void serialize(Archive & ar, const unsigned int version) 00072 { 00073 ar & BOOST_SERIALIZATION_NVP(myExpression); 00074 00075 if(version >= 1) 00076 { 00077 ar & BOOST_SERIALIZATION_NVP(myRegExFlag); 00078 } 00079 00080 ar & BOOST_SERIALIZATION_NVP(myKey); 00081 ar & BOOST_SERIALIZATION_NVP(myNodeCount); 00082 } 00083 00084 protected: 00085 00086 std::string myExpression; 00087 bool myRegExFlag; 00088 std::string myKey; 00089 unsigned int myNodeCount; 00090 00091 00092 }; 00093 } 00094 00095 BOOST_CLASS_VERSION(makArchives::DtExtractionOperationRecord,1) 00096 00097 #endif 00098