WSF
WsfNamed.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFNAMED_HPP
13#define WSFNAMED_HPP
14
15#include "wsf_export.h"
16
17#include "WsfStringId.hpp"
18
24{
25public:
26 WsfNamed();
27 WsfNamed(WsfStringId aName);
28 WsfNamed(const WsfNamed&) = default;
29 WsfNamed& operator=(const WsfNamed&) = default;
30 virtual ~WsfNamed() = default;
31
32 const std::string& GetName() const;
33
36 WsfStringId GetNameId() const { return mName; }
37
40 void SetName(WsfStringId aName) { mName = aName; }
41
42private:
43 WsfStringId mName;
44};
45
46#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
void SetName(WsfStringId aName)
Definition WsfNamed.hpp:40
WsfNamed(const WsfNamed &)=default
const std::string & GetName() const
Definition WsfNamed.cpp:34
WsfStringId GetNameId() const
Definition WsfNamed.hpp:36
WsfNamed()
Definition WsfNamed.cpp:17
virtual ~WsfNamed()=default
WsfNamed & operator=(const WsfNamed &)=default
Copyrights Multiple, All Rights Reserved