FDO API Reference Feature Data Objects

Dictionary.h

Go to the documentation of this file.
00001 #ifndef FDO_DICTIONARY
00002 #define FDO_DICTIONARY
00003 //
00004 
00005 //
00006 // Copyright (C) 2004-2006  Autodesk, Inc.
00007 // 
00008 // This library is free software; you can redistribute it and/or
00009 // modify it under the terms of version 2.1 of the GNU Lesser
00010 // General Public License as published by the Free Software Foundation.
00011 // 
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 // Lesser General Public License for more details.
00016 // 
00017 // You should have received a copy of the GNU Lesser General Public
00018 // License along with this library; if not, write to the Free Software
00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 //
00021 
00022 #include <Common/NamedCollection.h>
00023 
00024 /// \brief
00025 /// FdoDictionary is a collection of name-value pairs.
00026 class FdoDictionary : public FdoNamedCollection<FdoDictionaryElement, FdoException>
00027 {
00028 public:
00029     /// \brief
00030     /// Constructs a new empty dictionary
00031     /// 
00032     /// \return
00033     /// Returns FdoDictionary
00034     /// 
00035     FDO_API_COMMON static FdoDictionary* Create(void)
00036     {
00037         return new FdoDictionary();
00038     }
00039 
00040 protected:
00041 
00042     FDO_API_COMMON virtual void Dispose()
00043     {
00044         delete this;
00045     }
00046 
00047 };
00048 
00049 /// \brief
00050 /// FdoDictionaryP is a FdoPtr on FdoDictionary, provided for convenience.
00051 typedef FdoPtr<FdoDictionary> FdoDictionaryP;
00052 
00053 #endif
00054 
00055 

Comments or suggestions? Send us feedback.