Radium Engine  1.5.20
Loading...
Searching...
No Matches
DataLoader.hpp
1#pragma once
2
3#include <memory>
4#include <vector>
5
6struct aiScene;
7
8namespace Ra {
9namespace Core {
10namespace Asset {
11template <class DATA>
12class DataLoader
13{
14 public:
16 explicit DataLoader( const bool VERBOSE_MODE = false ) : m_verbose( VERBOSE_MODE ) {}
17
19 virtual ~DataLoader() = default;
20
22 virtual void loadData( const aiScene* scene, std::vector<std::unique_ptr<DATA>>& data ) = 0;
23
25 inline bool isVerbose() const { return m_verbose; }
26
27 inline void setVerbose( const bool VERBOSE_MODE ) { m_verbose = VERBOSE_MODE; }
28
29 protected:
30 bool m_verbose;
31};
32} // namespace Asset
33} // namespace Core
34} // namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3