DocumentationOverviewBuilding ASL Documentation Library Wiki Docs Indices Browse Perforce More InfoRelease NotesWiki Site Search License Success Stories Contributors MediaDownloadPerforce Depots SupportASL SourceForge HomeMailing Lists Discussion Forums Report Bugs Suggest Features Contribute to ASL RSSShort-text newsFull-text news File releases Other Adobe ProjectsAdobe AirAdobe GIL Adobe Labs Adobe Media Gallery Adobe XMP Tamarin project (Mozilla Foundation) Other ResourcesBoostRIAForge SGI STL |
dng_string_list.h00001 /*****************************************************************************/ 00002 // Copyright 2006-2007 Adobe Systems Incorporated 00003 // All Rights Reserved. 00004 // 00005 // NOTICE: Adobe permits you to use, modify, and distribute this file in 00006 // accordance with the terms of the Adobe license agreement accompanying it. 00007 /*****************************************************************************/ 00008 00009 /* $Id: //mondo/workarea/stern/camera_raw/dng_sdk/source/dng_string_list.h#5 $ */ 00010 /* $DateTime: 2008/10/13 01:53:55 $ */ 00011 /* $Change: 513072 $ */ 00012 /* $Author: stern $ */ 00013 00014 /*****************************************************************************/ 00015 00016 #ifndef __dng_string_list__ 00017 #define __dng_string_list__ 00018 00019 /*****************************************************************************/ 00020 00021 #include "dng_classes.h" 00022 #include "dng_types.h" 00023 00024 /*****************************************************************************/ 00025 00026 class dng_string_list 00027 { 00028 00029 private: 00030 00031 uint32 fCount; 00032 00033 uint32 fAllocated; 00034 00035 dng_string **fList; 00036 00037 public: 00038 00039 dng_string_list (); 00040 00041 ~dng_string_list (); 00042 00043 uint32 Count () const 00044 { 00045 return fCount; 00046 } 00047 00048 dng_string & operator[] (uint32 index) 00049 { 00050 return *(fList [index]); 00051 } 00052 00053 const dng_string & operator[] (uint32 index) const 00054 { 00055 return *(fList [index]); 00056 } 00057 00058 void Allocate (uint32 minSize); 00059 00060 void Insert (uint32 index, 00061 const dng_string &s); 00062 00063 void Append (const dng_string &s) 00064 { 00065 Insert (Count (), s); 00066 } 00067 00068 bool Contains (const dng_string &s) const; 00069 00070 void Clear (); 00071 00072 private: 00073 00074 // Hidden copy constructor and assignment operator. 00075 00076 dng_string_list (const dng_string_list &list); 00077 00078 dng_string_list & operator= (const dng_string_list &list); 00079 00080 }; 00081 00082 /*****************************************************************************/ 00083 00084 #endif 00085 00086 /*****************************************************************************/ |