|
|
@ -3,10 +3,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <MyGUI_DataManager.h>
|
|
|
|
#include <MyGUI_DataManager.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "myguicompat.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace osgMyGUI
|
|
|
|
namespace osgMyGUI
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DataManager : public MyGUI::DataManager
|
|
|
|
class DataManager : public MyGUI::DataManager
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
@ -18,7 +19,7 @@ public:
|
|
|
|
/** Get data stream from specified resource name.
|
|
|
|
/** Get data stream from specified resource name.
|
|
|
|
@param _name Resource name (usually file name).
|
|
|
|
@param _name Resource name (usually file name).
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
MyGUI::IDataStream* getData(const std::string& _name) override;
|
|
|
|
MyGUI::IDataStream* getData(const std::string& _name) OPENMW_MYGUI_CONST_GETTER_3_4_1 override;
|
|
|
|
|
|
|
|
|
|
|
|
/** Free data stream.
|
|
|
|
/** Free data stream.
|
|
|
|
@param _data Data stream.
|
|
|
|
@param _data Data stream.
|
|
|
@ -28,18 +29,18 @@ public:
|
|
|
|
/** Is data with specified name exist.
|
|
|
|
/** Is data with specified name exist.
|
|
|
|
@param _name Resource name.
|
|
|
|
@param _name Resource name.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
bool isDataExist(const std::string& _name) override;
|
|
|
|
bool isDataExist(const std::string& _name) OPENMW_MYGUI_CONST_GETTER_3_4_1 override;
|
|
|
|
|
|
|
|
|
|
|
|
/** Get all data names with names that matches pattern.
|
|
|
|
/** Get all data names with names that matches pattern.
|
|
|
|
@param _pattern Pattern to match (for example "*.layout").
|
|
|
|
@param _pattern Pattern to match (for example "*.layout").
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const MyGUI::VectorString& getDataListNames(const std::string& _pattern) override;
|
|
|
|
const MyGUI::VectorString& getDataListNames(const std::string& _pattern) OPENMW_MYGUI_CONST_GETTER_3_4_1 override;
|
|
|
|
|
|
|
|
|
|
|
|
/** Get full path to data.
|
|
|
|
/** Get full path to data.
|
|
|
|
@param _name Resource name.
|
|
|
|
@param _name Resource name.
|
|
|
|
@return Return full path to specified data.
|
|
|
|
@return Return full path to specified data.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const std::string& getDataPath(const std::string& _name) override;
|
|
|
|
const std::string& getDataPath(const std::string& _name) OPENMW_MYGUI_CONST_GETTER_3_4_1 override;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
std::string mResourcePath;
|
|
|
|
std::string mResourcePath;
|
|
|
|