![]() |
VR-Forces 5.0.3 Developer's Guide
|
Go to the source code of this file.
/****************************************************************************** ** Copyright (c) 2008 MAK Technologies, Inc. ** All rights reserved. ******************************************************************************/
//! //!Archive for a string->string mapper
#ifndef DtRuleMapRecord_H_ #define DtRuleMapRecord_H_
#include <makArchives/makArchives.h> #include <map>
namespace makArchives { class DT_DLL_MAKARCHIVES DtRuleMapRecord { public: typedef std::map<std::string, std::string> RuleMap;
//! CTOR DtRuleMapRecord();
//! CTOR DtRuleMapRecord(const DtRuleMapRecord& records);
//! DTOR ~DtRuleMapRecord();
//!Assignment OP DtRuleMapRecord& operator=(const DtRuleMapRecord& orig);
//! Get the rules const RuleMap& rules() const;
//! Add a rule void addRule(const std::string& key, const std::string& value);
protected: //! Serialization/Deserialization //
friend class boost::serialization::access;
//! When the class Archive corresponds to an output archive, the //! & operator is defined similar to <<. Likewise, when the class Archive //! is a type of input archive the & operator is defined similar to >>. template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & BOOST_SERIALIZATION_NVP(myRules); }
protected: RuleMap myRules; }; }
#endif