VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtFeatureSpecification.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile:  $ $Revision:  $ $State:  $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvCore/vrvCore.h>
00015 #include <boost/unordered_map.hpp>
00016 
00017 namespace makVrv
00018 {
00022    class DT_DLL_VRVCORE DtFeatureSpecification
00023    {
00024    public:
00025       typedef boost::unordered_map<std::string,std::string> AttributeMap;
00026       
00028       DtFeatureSpecification();
00029 
00031       DtFeatureSpecification(const DtFeatureSpecification&);
00032 
00034       ~DtFeatureSpecification();
00035       
00038       DtFeatureSpecification& operator=(const DtFeatureSpecification&);
00039 
00041       bool operator==(const DtFeatureSpecification& other) const;
00042 
00044       bool operator!=(const DtFeatureSpecification& other) const;
00045 
00047       void addAttribute(const std::string& key, const std::string& value);
00048 
00050       void removeAttribute(const std::string& key);
00051 
00054       std::string* findAttribute(const std::string& key);
00055       const std::string* findAttribute(const std::string& key) const;
00056 
00058       const AttributeMap& attributes() const;
00059 
00060    protected:
00061       AttributeMap myAttributes;
00062    };
00063 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)