Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_LabeledObject.cpp
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #include "Teuchos_LabeledObject.hpp"
11 
12 
13 namespace Teuchos {
14 
15 
17  : objectLabel_("")
18 {}
19 
20 
22 {}
23 
24 
25 void LabeledObject::setObjectLabel( const std::string &objectLabel )
26 {
27  objectLabel_ = objectLabel;
28 }
29 
30 
31 std::string LabeledObject::getObjectLabel() const
32 {
33  return objectLabel_;
34 }
35 
36 
37 } // namespace Teuchos
virtual std::string getObjectLabel() const
Get the object label (see LabeledObject).
virtual void setObjectLabel(const std::string &objectLabel)
Set the object label (see LabeledObject).
LabeledObject()
Construct with an empty label.