Flow123d
jenkins-Flow123d-windows32-release-multijob-51
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
io
output_data_base.hh
Go to the documentation of this file.
1
/*
2
* output_data_base.hh
3
*
4
* Created on: Mar 16, 2014
5
* Author: jb
6
*/
7
8
#ifndef OUTPUT_DATA_BASE_HH_
9
#define OUTPUT_DATA_BASE_HH_
10
11
12
13
#include <ostream>
14
#include <string>
15
16
#include "
fields/unit_si.hh
"
17
18
/**
19
* \brief Common parent class for templated OutputData.
20
*
21
* Provides virtual method for output of stored data.
22
*
23
*/
24
class
OutputDataBase
{
25
public
:
26
/**
27
* Number of components of element data stored in the database.
28
*/
29
enum
ValueType
{
30
scalar
=1,
31
vector
=3,
32
tensor
=9
33
};
34
35
virtual
~OutputDataBase
() {};
36
virtual
void
print
(ostream &out_stream,
unsigned
int
idx) = 0;
37
38
39
/**
40
* Data copied from Field.
41
*/
42
std::string
output_field_name
;
43
std::string
field_name
;
44
UnitSI
field_units
;
45
/**
46
* Number of data values.
47
*/
48
unsigned
int
n_values
;
49
50
51
/**
52
* Number of data elements per data value.
53
*/
54
ValueType
n_elem_
;
55
56
57
};
58
59
60
61
62
#endif
/* OUTPUT_DATA_BASE_HH_ */
OutputDataBase
Common parent class for templated OutputData.
Definition:
output_data_base.hh:24
OutputDataBase::output_field_name
std::string output_field_name
Definition:
output_data_base.hh:42
OutputDataBase::tensor
Definition:
output_data_base.hh:32
OutputDataBase::scalar
Definition:
output_data_base.hh:30
OutputDataBase::n_elem_
ValueType n_elem_
Definition:
output_data_base.hh:54
OutputDataBase::~OutputDataBase
virtual ~OutputDataBase()
Definition:
output_data_base.hh:35
OutputDataBase::n_values
unsigned int n_values
Definition:
output_data_base.hh:48
OutputDataBase::ValueType
ValueType
Definition:
output_data_base.hh:29
OutputDataBase::vector
Definition:
output_data_base.hh:31
OutputDataBase::field_units
UnitSI field_units
Definition:
output_data_base.hh:44
unit_si.hh
OutputDataBase::field_name
std::string field_name
Definition:
output_data_base.hh:43
UnitSI
Class for representation SI units of Fields.
Definition:
unit_si.hh:31
OutputDataBase::print
virtual void print(ostream &out_stream, unsigned int idx)=0
Generated on Mon Oct 20 2014 14:40:46 for Flow123d by
1.8.7