mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 04:10:06 +00:00
1ff8abb240
command Static nature of C++ forced me to use templates. Bit frustraiting.
34 lines
667 B
C++
34 lines
667 B
C++
#ifndef CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
#define CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
|
|
#include <components/esm/loadcont.hpp>
|
|
|
|
#include <vector>
|
|
namespace CSMWorld
|
|
{
|
|
struct NestedTableWrapperBase
|
|
{
|
|
virtual ~NestedTableWrapperBase();
|
|
|
|
NestedTableWrapperBase();
|
|
};
|
|
|
|
template<typename NestedTable>
|
|
class NestedTableWrapper : public NestedTableWrapperBase
|
|
{
|
|
NestedTable mNestedTable;
|
|
|
|
public:
|
|
|
|
NestedTableWrapper(const NestedTable& nestedTable) {}
|
|
|
|
NestedTable getNestedTable() const
|
|
{
|
|
return mNestedTable;
|
|
}
|
|
|
|
virtual ~NestedTableWrapper() {}
|
|
};
|
|
}
|
|
#endif
|