27 lines
653 B
C++
27 lines
653 B
C++
#ifndef NTX_NODEXML_H
|
|
#define NTX_NODEXML_H
|
|
|
|
#include <ntxinode.h>
|
|
#include <string>
|
|
|
|
namespace ntx
|
|
{
|
|
class NtxNodeXml
|
|
{
|
|
|
|
public:
|
|
|
|
static NtxNodePtr loadFromFile(const std::string& filename);
|
|
static NtxNodePtr loadFromString(const std::string& xmlContent);
|
|
|
|
// Methoden zum Speichern
|
|
static bool saveToFile(const NtxNodePtr& node, const std::string& filename);
|
|
static bool saveToFile(const NtxNodeCPtr& node, const std::string& filename);
|
|
|
|
static std::string saveToString(const NtxNodePtr& node);
|
|
static std::string saveToString(const NtxNodeCPtr& node);
|
|
|
|
};
|
|
}
|
|
|
|
#endif // NTX_NODEXML_H
|