GDCM  2.2.0
vtkStringArray.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004 
00005   Copyright (c) 2006-2011 Mathieu Malaterre
00006   All rights reserved.
00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 // .NAME vtkStringArray -
00015 // .SECTION Description
00016 //
00017 // .SECTION
00018 //
00019 // .SECTION See Also
00020 
00021 #ifndef VTKSTRINGARRAY_H
00022 #define VTKSTRINGARRAY_H
00023 
00024 #ifdef __vtkStringArray_h
00025 #error Something went terribly wrong
00026 #endif
00027 
00028 #include "vtkObject.h"
00029 
00030 #include <string>
00031 
00032 class vtkStringArrayInternals;
00033 class VTK_EXPORT vtkStringArray : public vtkObject
00034 {
00035 public:
00036   static vtkStringArray *New();
00037   vtkTypeRevisionMacro(vtkStringArray,vtkObject);
00038   virtual void PrintSelf(ostream& os, vtkIndent indent);
00039 
00040 //BTX
00041   //std::string &GetValue(unsigned int i);
00042   vtkIdType InsertNextValue(std::string const & f);
00043 //ETX
00044   const char *GetValue(unsigned int i);
00045   int GetNumberOfValues();
00046   vtkIdType InsertNextValue(const char *f);
00047 
00048   vtkIdType GetSize();
00049 
00050 protected:
00051   vtkStringArray();
00052   ~vtkStringArray();
00053 
00054 private:
00055   vtkStringArray(const vtkStringArray&);  // Not implemented.
00056   void operator=(const vtkStringArray&);  // Not implemented.
00057 
00058   vtkStringArrayInternals *Internal;
00059 };
00060 
00061 #endif

Generated on Fri May 25 2012 13:12:45 for GDCM by doxygen 1.8.0
SourceForge.net Logo