MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / writer

Class writer

src/fileFormats/sampledSetWriters/writer.H:79–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78template<class Type>
79class writer
80{
81
82protected:
83
84 //- Generates filename from coordSet and sampled fields
85 fileName getBaseName(const coordSet&, const wordList&) const;
86
87 void writeCoord(const coordSet&, const label sampleI, Ostream&) const;
88
89 //- Writes single-column ascii write. Column 1 is coordSet coordinate,
90 // columns 2 is the value. Uses write() function
91 // to write coordinate in correct format.
92 void writeTable(const coordSet&, const List<Type>&, Ostream&) const;
93
94 //- Writes multi-column ascii write. Column 1 is coordSet coordinate,
95 // columns 2..n are the values. Uses write() function
96 // to write coordinate in correct format.
97 void writeTable
98 (
99 const coordSet&,
100 const List<const List<Type>*>&,
101 Ostream& os
102 ) const;
103
104 //- Writes a separator. Used by write functions.
105 virtual void writeSeparator(Ostream& os) const;
106
107
108public:
109
110 //- Runtime type information
111 TypeName("writer");
112
113 // Declare run-time constructor selection table
114
115 declareRunTimeSelectionTable
116 (
117 autoPtr,
118 writer,
119 word,
120 (),
121 ()
122 );
123
124
125 // Selectors
126
127 //- Return a reference to the selected writer
128 static autoPtr<writer> New(const word& writeFormat);
129
130
131 // Constructors
132
133 //- Construct null
134 writer();
135
136

Callers 1

writer.CFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected