EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Named.h
1 #ifndef NAMED_H_
2 #define NAMED_H_
3 
4 // Tools
5 #include "tools/ToolsConfig.h"
6 
15 class Named {
16 
17  public:
18 
19  virtual ~Named();
20 
22  virtual const std::string& getName() const = 0;
23 };
24 
28 class NamedBase : public Named
29 {
30 public:
32  NamedBase(const char *name);
33 
35  const stdString &getName() const;
36 private:
37  stdString name;
38 };
39 
40 #endif /*NAMED_H_*/
virtual const std::string & getName() const =0
A named thingy.
Definition: Named.h:28
Abstract base for a named thingy, does not actually contain the name.
Definition: Named.h:15
const stdString & getName() const
NamedBase(const char *name)
Create a Named thing with given name.