IT++ Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
itpp::Name Class Reference

Automatic naming when savingAn easy way to give a variable a name and optionally description when saving. Usage: More...

#include <itpp/base/itfile.h>

Public Member Functions

 Name (const std::string &n, const std::string &d="")
 Constructor.
Nameoperator= (const Name &)
 Dummy assignment operator - MSVC++ warning C4512.

Public Attributes

const std::string & name
 The name string.
const std::string & desc
 The description.

Detailed Description

Automatic naming when saving

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;

Definition at line 418 of file itfile.h.


The documentation for this class was generated from the following file:
SourceForge Logo

Generated on Fri Mar 21 2014 17:14:15 for IT++ by Doxygen 1.8.1.2