Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Servers/Common/vtkStringList.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkStringList.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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   //BTX
00043 
00044   void AddFormattedString(const char* EventString, ...);
00045   //ETX
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&); // Not implemented
00076   void operator=(const vtkStringList&); // Not implemented
00077 };
00078 
00079 #endif

Generated on Tue May 30 12:31:45 2006 for ParaView by doxygen 1.3.5