VTK
dox
Common
Core
vtkStringOutputWindow.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkStringOutputWindow.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
24
#ifndef vtkStringOutputWindow_h
25
#define vtkStringOutputWindow_h
26
27
#include "vtkCommonCoreModule.h"
// For export macro
28
#include "
vtkOutputWindow.h
"
29
#include <sstream>
// for ivar
30
31
class
VTKCOMMONCORE_EXPORT
vtkStringOutputWindow
:
public
vtkOutputWindow
32
{
33
public
:
34
vtkTypeMacro(
vtkStringOutputWindow
,
vtkOutputWindow
);
35
36
static
vtkStringOutputWindow
*
New
();
37
38
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
39
44
void
DisplayText
(
const
char
*)
override
;
45
49
std::string
GetOutput
() {
return
this->OStream.str(); };
50
51
protected
:
52
vtkStringOutputWindow
();
53
~
vtkStringOutputWindow
()
override
;
54
void
Initialize();
55
56
std::ostringstream
OStream
;
57
58
private
:
59
vtkStringOutputWindow
(
const
vtkStringOutputWindow
&) =
delete
;
60
void
operator=(
const
vtkStringOutputWindow
&) =
delete
;
61
};
62
63
64
#endif
vtkOutputWindow.h
vtkOutputWindow::New
static vtkOutputWindow * New()
Creates a new instance of vtkOutputWindow.
vtkOutputWindow
base class for writing debug output to a console
Definition:
vtkOutputWindow.h:46
vtkStringOutputWindow::OStream
std::ostringstream OStream
Definition:
vtkStringOutputWindow.h:56
vtkOutputWindow::DisplayText
virtual void DisplayText(const char *)
Display the text.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkStringOutputWindow
File Specific output window class.
Definition:
vtkStringOutputWindow.h:31
vtkX3D::string
Definition:
vtkX3D.h:490
vtkOutputWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.
vtkStringOutputWindow::GetOutput
std::string GetOutput()
Get the current output as a string.
Definition:
vtkStringOutputWindow.h:49
Generated by
1.8.16