VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
IO
Core
vtkDelimitedTextWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ParaView
4
Module: vtkDelimitedTextWriter.h
5
6
Copyright (c) Kitware, Inc.
7
All rights reserved.
8
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2009 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
20
29
#ifndef vtkDelimitedTextWriter_h
30
#define vtkDelimitedTextWriter_h
31
32
#include "
vtkIOCoreModule.h
"
// For export macro
33
#include "
vtkWriter.h
"
34
35
class
vtkStdString
;
36
class
vtkTable
;
37
38
class
VTKIOCORE_EXPORT
vtkDelimitedTextWriter
:
public
vtkWriter
39
{
40
public
:
41
static
vtkDelimitedTextWriter
*
New
();
42
vtkTypeMacro(
vtkDelimitedTextWriter
,
vtkWriter
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
46
47
vtkSetStringMacro(FieldDelimiter);
48
vtkGetStringMacro(FieldDelimiter);
50
52
54
vtkSetStringMacro(StringDelimiter);
55
vtkGetStringMacro(StringDelimiter);
57
59
60
vtkSetStringMacro(FileName);
61
vtkGetStringMacro(FileName);
63
65
67
vtkSetMacro(UseStringDelimiter,
bool
);
68
vtkGetMacro(UseStringDelimiter,
bool
);
70
72
73
vtkSetMacro(WriteToOutputString,
bool
);
74
vtkGetMacro(WriteToOutputString,
bool
);
75
vtkBooleanMacro(WriteToOutputString,
bool
);
77
80
char
*RegisterAndGetOutputString();
81
83
85
vtkStdString
GetString(
vtkStdString
string
);
86
protected
:
87
vtkDelimitedTextWriter
();
88
~
vtkDelimitedTextWriter
();
90
91
bool
WriteToOutputString
;
92
char
*
OutputString
;
93
94
bool
OpenStream();
95
96
virtual
void
WriteData
();
97
virtual
void
WriteTable(
vtkTable
* rectilinearGrid);
98
99
// see algorithm for more info.
100
// This writer takes in vtkTable.
101
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
102
103
char
*
FileName
;
104
char
*
FieldDelimiter
;
105
char
*
StringDelimiter
;
106
bool
UseStringDelimiter
;
107
//BTX
108
ostream*
Stream
;
109
//ETX
110
private
:
111
vtkDelimitedTextWriter
(
const
vtkDelimitedTextWriter
&);
// Not implemented.
112
void
operator=(
const
vtkDelimitedTextWriter
&);
// Not implemented.
113
};
114
115
116
117
#endif
118
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkDelimitedTextWriter::StringDelimiter
char * StringDelimiter
Definition:
vtkDelimitedTextWriter.h:105
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:85
vtkDelimitedTextWriter::WriteToOutputString
bool WriteToOutputString
Definition:
vtkDelimitedTextWriter.h:91
vtkX3D::info
Definition:
vtkX3D.h:376
vtkDelimitedTextWriter::Stream
ostream * Stream
Definition:
vtkDelimitedTextWriter.h:108
VTKIOCORE_EXPORT
#define VTKIOCORE_EXPORT
Definition:
vtkIOCoreModule.h:15
vtkWriter
abstract class to write data to file(s)
Definition:
vtkWriter.h:44
vtkDelimitedTextWriter
Delimited text writer for vtkTable Writes a vtkTable as a delimited text file (such as CSV)...
Definition:
vtkDelimitedTextWriter.h:38
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkDelimitedTextWriter::OutputString
char * OutputString
Definition:
vtkDelimitedTextWriter.h:92
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:67
vtkIOCoreModule.h
vtkDelimitedTextWriter::FieldDelimiter
char * FieldDelimiter
Definition:
vtkDelimitedTextWriter.h:104
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkWriter::WriteData
virtual void WriteData()=0
vtkX3D::port
Definition:
vtkX3D.h:447
vtkDelimitedTextWriter::UseStringDelimiter
bool UseStringDelimiter
Definition:
vtkDelimitedTextWriter.h:106
vtkWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkWriter.h
vtkDelimitedTextWriter::FileName
char * FileName
Definition:
vtkDelimitedTextWriter.h:103
Generated by
1.8.9.1