summaryrefslogtreecommitdiff
path: root/gpr/source/lib/dng_sdk/dng_string_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpr/source/lib/dng_sdk/dng_string_list.h')
-rw-r--r--gpr/source/lib/dng_sdk/dng_string_list.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/gpr/source/lib/dng_sdk/dng_string_list.h b/gpr/source/lib/dng_sdk/dng_string_list.h
new file mode 100644
index 0000000..c2e78d8
--- /dev/null
+++ b/gpr/source/lib/dng_sdk/dng_string_list.h
@@ -0,0 +1,86 @@
+/*****************************************************************************/
+// Copyright 2006-2007 Adobe Systems Incorporated
+// All Rights Reserved.
+//
+// NOTICE: Adobe permits you to use, modify, and distribute this file in
+// accordance with the terms of the Adobe license agreement accompanying it.
+/*****************************************************************************/
+
+/* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_string_list.h#1 $ */
+/* $DateTime: 2012/05/30 13:28:51 $ */
+/* $Change: 832332 $ */
+/* $Author: tknoll $ */
+
+/*****************************************************************************/
+
+#ifndef __dng_string_list__
+#define __dng_string_list__
+
+/*****************************************************************************/
+
+#include "dng_classes.h"
+#include "dng_types.h"
+
+/*****************************************************************************/
+
+class dng_string_list
+ {
+
+ private:
+
+ uint32 fCount;
+
+ uint32 fAllocated;
+
+ dng_string **fList;
+
+ public:
+
+ dng_string_list ();
+
+ ~dng_string_list ();
+
+ uint32 Count () const
+ {
+ return fCount;
+ }
+
+ dng_string & operator[] (uint32 index)
+ {
+ return *(fList [index]);
+ }
+
+ const dng_string & operator[] (uint32 index) const
+ {
+ return *(fList [index]);
+ }
+
+ void Allocate (uint32 minSize);
+
+ void Insert (uint32 index,
+ const dng_string &s);
+
+ void Append (const dng_string &s)
+ {
+ Insert (Count (), s);
+ }
+
+ bool Contains (const dng_string &s) const;
+
+ void Clear ();
+
+ private:
+
+ // Hidden copy constructor and assignment operator.
+
+ dng_string_list (const dng_string_list &list);
+
+ dng_string_list & operator= (const dng_string_list &list);
+
+ };
+
+/*****************************************************************************/
+
+#endif
+
+/*****************************************************************************/