Utilities
Utilities header only library
NamedClass.h
1 /*
2  Copyright (C) Skeletex Research, s.r.o. - All Rights Reserved
3  Unauthorized copying of this file, via any medium is strictly prohibited
4  Proprietary and confidential
5 */
6 #ifndef UTILS_NAMED_CLASS_H
7 #define UTILS_NAMED_CLASS_H
8 
9 #include <string>
10 
11 
12 
13 namespace utils
14 {
16  template<typename T>
17  class NamedClass
18  {
19  public:
20  [[nodiscard]]
21  virtual const char *GetClassName() const
22  {
23  return T::CLASS_NAME;
24  }
25  };
26 
27 }
28 
29 #endif /* !UTILS_NAMED_CLASS_H */
A simple parent class to guarantee that all who derive from it will have a human-readable name...
Definition: NamedClass.h:17
General namespace for utilities.
Definition: BulletConversions.h:9