Radium Engine  1.5.0
AssetData.hpp
1 #pragma once
2 
3 #include <Core/RaCore.hpp>
4 #include <string>
5 
6 namespace Ra {
7 namespace Core {
8 namespace Asset {
9 
16 class RA_CORE_API AssetData
17 {
18  public:
20  explicit AssetData( const std::string& name ) : m_name( name ) {}
21 
23  AssetData( const AssetData& other ) = default;
24 
26  virtual ~AssetData() {}
27 
29  inline virtual const std::string& getName() const { return m_name; }
30 
31  protected:
32  std::string m_name;
33 };
34 
35 } // namespace Asset
36 } // namespace Core
37 } // namespace Ra
virtual ~AssetData()
Simple delete operator.
Definition: AssetData.hpp:26
virtual const std::string & getName() const
Acces to the name of the asset.
Definition: AssetData.hpp:29
AssetData(const AssetData &other)=default
Copy constructor. Default here.
AssetData(const std::string &name)
Construct an asset data given its name.
Definition: AssetData.hpp:20
Definition: Cage.cpp:3