1 #include "DocString.hxx" 8 const
std::
string& name,
9 const
std::
string& doc,
10 const
std::
string& type,
12 const
std::
string& counter1,
14 const
std::
string& counter2,
16 const
std::
string& counter3) {
30 std::string dim =
"Unknown";
31 std::string nicetype =
"Unknown";
34 dim =
"3D matrix of ";
45 }
else if (
_type ==
"D") {
47 }
else if (
_type ==
"I") {
49 }
else if (
_type ==
"C") {
53 std::cout <<
"Variable name..... " <<
_name << std::endl;
54 std::cout <<
"Stored in tree.... " <<
_tree << std::endl;
55 std::cout <<
"Type of variable.. " << dim << nicetype << std::endl;
57 std::cout <<
"Size of variable: " << std::endl;
58 std::cout <<
" 1st dimension... ";
60 std::cout << abs(
_size1) <<
" (fixed size)" << std::endl;
62 std::cout <<
_counter1 <<
" (variable size, up to a maximum of " << abs(
_size1) <<
")" << std::endl;
65 std::cout <<
" 2nd dimension... ";
67 std::cout << abs(
_size2) <<
" (fixed size)" << std::endl;
69 std::cout <<
_counter2 <<
" (variable size, up to a maximum of " << abs(
_size2) <<
")" << std::endl;
72 std::cout <<
" 3rd dimension... ";
74 std::cout << abs(
_size3) <<
" (fixed size)" << std::endl;
76 std::cout <<
_counter3 <<
" (variable size, up to a maximum of " << abs(
_size3) <<
")" << std::endl;
81 std::cout <<
"Documentation..... " <<
_doc << std::endl;
std::string _counter1
If a vector, the counter used for the 1st dimension.
std::string _type
The type of this variable (I/F/C/D)
int _size1
If a vector, the size of the 1st dimension.
int _size2
If a matrix, the size of the 2nd dimension.
std::string _counter2
If a matrix, the counter used for the 2nd dimension.
std::string _counter3
If a 3D matrix, the counter used for the 3rd dimension.
std::string _name
The name of this variable.
std::string _tree
The name of the tree this variable was stored in.
std::string _doc
The documentation string provided by the user.
int _size3
If a 3D matrix, the size of the 3rd dimension.