Flow123d  release_2.1.0-87-gfbc1563
flow_attribute_lib.hh
Go to the documentation of this file.
1 /*!
2  *
3  * Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License version 3 as published by the
7  * Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12  *
13  *
14  * @file attribute_lib.hh
15  * @brief
16  */
17 
18 #ifndef ATTRIBUTE_LIB_HH_
19 #define ATTRIBUTE_LIB_HH_
20 
21 using namespace std;
22 
23 /**
24  * @brief Class with static methods provided special attributes of Flow123D application.
25  *
26  * This class contains only attributes typical for Flow123D application. Base attributes
27  * are stored in @p Input::Type::Attributes.
28  */
30 public:
31 
32  /**
33  * Specify a unit of a field.
34  *
35  * Format of value: record with base units as keys and exponents as their values, e.g.
36  * { "m" : 0, "md" : 0, "kg" : 0, "s" : 0, "A" : 0, "K" : 0, "mol" : 0, "cd" : 0 }
37  */
38  inline static string field_unit()
39  { return "key_field_unit"; }
40 
41  /**
42  * Specify a value of the field.
43  *
44  * Format of value: record e.g.
45  * { "subfields": true, "shape": [ 1, 1 ], "type": "Float" }
46  */
47  inline static string field_value_shape()
48  { return "field_value_shape"; }
49 
50  /**
51  * Specify path where multifields of the equation get their names.
52  *
53  * Format of value: string, pattern of address, e.g.
54  * "/problem/solute_equation/substances/ * /name"
55  */
56  inline static string subfields_address()
57  { return "subfields_address"; }
58 
59 };
60 
61 #endif /* ATTRIBUTE_LIB_HH_ */
static string subfields_address()
static string field_value_shape()
Class with static methods provided special attributes of Flow123D application.
static string field_unit()