VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages

Go to the source code of this file.

Detailed Description

/****************************************************************************** ** 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


Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)