Simpatico  v1.10
OptionalLabel.cpp
1 /*
2 * Util Package - C++ Utilities for Scientific Computation
3 *
4 * Copyright 2010 - 2017, The Regents of the University of Minnesota
5 * Distributed under the terms of the GNU General Public License.
6 */
7 
8 #include "OptionalLabel.h"
9 
10 namespace Util
11 {
12 
13  /*
14  * Constructor.
15  */
17  : Label(false)
18  {}
19 
20  /*
21  * Constructor.
22  */
23  OptionalLabel::OptionalLabel(std::string string)
24  : Label(string, false)
25  {}
26 
27  /*
28  * Constructor.
29  */
30  OptionalLabel::OptionalLabel(const char* string)
31  : Label(string, false)
32  {}
33 
34  /*
35  * Copy constructor.
36  */
38  : Label(other.string(), false)
39  {}
40 
41  /*
42  * Destructor.
43  */
45  {}
46 
47 }
An optional Label string in a file format.
Definition: OptionalLabel.h:23
OptionalLabel()
Default constructor.
std::string string() const
Return label string.
Definition: Label.cpp:89
Utility classes for scientific computation.
Definition: accumulators.mod:1
A label string in a file format.
Definition: Label.h:36
virtual ~OptionalLabel()
Destructor.