Radium Engine  1.5.20
Loading...
Searching...
No Matches
AssetData.hpp
1#pragma once
2
3#include <Core/RaCore.hpp>
4#include <string>
5
6namespace Ra {
7namespace Core {
8namespace Asset {
9
16class 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 const std::string & getName() const
Acces to the name of the asset.
Definition AssetData.hpp:29
virtual ~AssetData()
Simple delete operator.
Definition AssetData.hpp:26
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
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3