00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00022 #ifndef __vtkStringList_h
00023 #define __vtkStringList_h
00024
00025 #include "vtkObject.h"
00026
00027
00028 class VTK_EXPORT vtkStringList : public vtkObject
00029 {
00030 public:
00031 static vtkStringList* New();
00032 vtkTypeRevisionMacro(vtkStringList,vtkObject);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00036
00037 void AddString(const char* str);
00038 void AddUniqueString(const char* str);
00040
00041
00043
00044 void AddFormattedString(const char* EventString, ...);
00045
00047
00049 void RemoveAllItems();
00050
00052 void SetString(int idx, const char *str);
00053
00055 int GetLength() { return this->NumberOfStrings;}
00056
00058 int GetIndex(const char* str);
00059
00061 const char *GetString(int idx);
00062
00063 vtkGetMacro(NumberOfStrings, int);
00064
00065 protected:
00066 vtkStringList();
00067 ~vtkStringList();
00068
00069 int NumberOfStrings;
00070 int StringArrayLength;
00071 char **Strings;
00072 void Reallocate(int num);
00073 void DeleteStrings();
00074
00075 vtkStringList(const vtkStringList&);
00076 void operator=(const vtkStringList&);
00077 };
00078
00079 #endif