Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
ResourceName.h
Go to the documentation of this file.
1#ifndef ULT_RESOURCE_NAME_H_INCLUDED
2#define ULT_RESOURCE_NAME_H_INCLUDED
3
4#include <string>
5
6namespace Ult
7{
8
13{
14public:
19 mName(),
20 mIndex(-1)
21 {}
22
26 std::string GetName() const { return mName; }
30 int GetIndex() const { return mIndex; }
31
35 void SetName(const std::string& name) { mName = name; }
39 void SetIndex(const int index) { mIndex = index; }
40
44 bool operator==(const ResourceName& resName) {
45 return
46 mName == resName.mName &&
47 mIndex == resName.mIndex;
48 }
49
50private:
51 std::string mName;
52 int mIndex;
53};
54
55} // namespace Ult
56
57#endif // ULT_RESOURCE_NAME_H_INCLUDED
std::string GetName() const
Definition ResourceName.h:26
int GetIndex() const
Definition ResourceName.h:30
bool operator==(const ResourceName &resName)
Definition ResourceName.h:44
void SetName(const std::string &name)
Definition ResourceName.h:35
ResourceName()
Definition ResourceName.h:18
void SetIndex(const int index)
Definition ResourceName.h:39
Definition Archive.h:13