FDO .NET API Reference | Feature Data Objects |
00001 // Copyright (C) 2004-2006 Autodesk, Inc. 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of version 2.1 of the GNU Lesser 00005 // General Public License as published by the Free Software Foundation. 00006 // 00007 // This library is distributed in the hope that it will be useful, 00008 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00010 // Lesser General Public License for more details. 00011 // 00012 // You should have received a copy of the GNU Lesser General Public 00013 // License along with this library; if not, write to the Free Software 00014 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00015 00016 //#pragma once 00017 // 00018 //BEGIN_NAMESPACE_COMMON 00019 // 00020 //public __sealed __gc class StringDictionary : public DictionaryBase 00021 //{ 00022 //public: 00023 // __property String* get_Item( String* key ) 00024 // { 00025 // return __try_cast<String*>(Dictionary->Item[key]); 00026 // } 00027 // 00028 // __property void set_Item( String* key, String* value ) 00029 // { 00030 // Dictionary->Item[key] = value; 00031 // } 00032 // 00033 // __property ICollection* get_Keys() 00034 // { 00035 // return(Dictionary->Keys); 00036 // } 00037 // 00038 // __property ICollection* get_Values() 00039 // { 00040 // return(Dictionary->Values); 00041 // } 00042 // 00043 // void Add(String* key, String* value) { 00044 // Dictionary->Add(key, value); 00045 // } 00046 // 00047 // bool Contains(String* key) { 00048 // return(Dictionary->Contains(key)); 00049 // } 00050 // 00051 // void Remove(String* key) { 00052 // Dictionary->Remove(key); 00053 // } 00054 // 00055 //protected: 00056 // void OnInsert(Object* key, Object* value) 00057 // { 00058 // if (key->GetType() != Type::GetType(S"System.String")) 00059 // throw new ArgumentException(S"key must be of type String.", S"key"); 00060 // 00061 // if (value->GetType() != Type::GetType(S"System.String")) 00062 // throw new ArgumentException(S"value must be of type String.", S"value"); 00063 // } 00064 // 00065 // void OnRemove(Object* key, Object* value) 00066 // { 00067 // if (key->GetType() != Type::GetType(S"System.String")) 00068 // throw new ArgumentException(S"key must be of type String.", S"key"); 00069 // } 00070 // 00071 // void OnSet(Object* key, Object* oldValue, Object* newValue) 00072 // { 00073 // if (key->GetType() != Type::GetType(S"System.String")) 00074 // throw new ArgumentException(S"key must be of type String.", S"key"); 00075 // 00076 // if (newValue->GetType() != Type::GetType(S"System.String")) 00077 // throw new ArgumentException(S"newValue must be of type String.", S"newValue"); 00078 // } 00079 // 00080 // void OnValidate(Object* key, Object* value) 00081 // { 00082 // if (key->GetType() != Type::GetType(S"System.String")) 00083 // throw new ArgumentException(S"key must be of type String.", S"key"); 00084 // 00085 // if (value->GetType() != Type::GetType(S"System.String")) 00086 // throw new ArgumentException(S"value must be of type String.", S"value"); 00087 // } 00088 // 00089 //}; 00090 // 00091 //END_NAMESPACE_COMMON 00092 00093
Comments or suggestions? Send us feedback. |