11 #ifndef vtkStringList_h 12 #define vtkStringList_h 16 #include "vtkStringFormatter.h" 31 void AddString(
const char* str);
32 void AddUniqueString(
const char* str);
38 template <
typename... T>
41 std::string format = EventString ? EventString :
"";
42 auto formatedString = vtk::format(format, std::forward<T>(args)...);
43 this->AddString(formatedString.c_str());
49 void RemoveAllItems();
54 void SetString(
int idx,
const char* str);
59 int GetLength() {
return this->GetNumberOfStrings(); }
64 int GetIndex(
const char* str);
69 const char* GetString(
int idx);
74 int GetNumberOfStrings();
82 std::unique_ptr<vtkInternals> Internals;
#define VTKPVVTKEXTENSIONSCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void AddFormattedString(const char *EventString, T &&... args)
Add a command and format it any way you like.
int GetLength()
Get the length of the list.
void operator=(const vtkObjectBase &)
Manages allocation and freeing for a string list.