An easy way to give a variable a name and optionally description when saving. Usage:. More...
#include <itfile.h>
Public Member Functions | |
Name (const std::string &n, const std::string &d="") | |
Constructor. | |
Name & | operator= (const Name &) |
Dummy assignment operator - MSVC++ warning C4512. | |
Public Attributes | |
const std::string & | name |
The name string. | |
const std::string & | desc |
The description. |
An easy way to give a variable a name and optionally description when saving. Usage:.
vec v1("1 2 3"), v2; it_file f("file.it"); f << Name("v", "A vector of consecutive double values") << v1; f >> Name("v") >> v2;