1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 04:10:06 +00:00
OpenMW/apps/opencs/model/world/nestedtablewrapper.hpp
Marek Kochanowicz 1ff8abb240 store whole container representing the nested table inside of the
command

Static nature of C++ forced me to use templates. Bit frustraiting.
2014-07-18 18:26:22 +02:00

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