summaryrefslogtreecommitdiffstats
path: root/src/xml_to_data/device_xml_to_data.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-06 18:26:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-07 11:02:46 +0900
commit014e4b95648f2b8e7deb57acb0cdd8cefc363477 (patch)
tree02ced501daff512fed5126427f57eca6c2ef3630 /src/xml_to_data/device_xml_to_data.h
parentf2e2d9a5271aa9cfd966592d50f60d5b5bf550f4 (diff)
downloadpiklab-014e4b95648f2b8e7deb57acb0cdd8cefc363477.tar.gz
piklab-014e4b95648f2b8e7deb57acb0cdd8cefc363477.zip
Allow generation of build time data files in out-of-source builds. Also fix generation of data file for devices/mem24 subfolder
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ac3f0014232619edc41865f6e42e6510bdd8acc6)
Diffstat (limited to 'src/xml_to_data/device_xml_to_data.h')
-rw-r--r--src/xml_to_data/device_xml_to_data.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xml_to_data/device_xml_to_data.h b/src/xml_to_data/device_xml_to_data.h
index b505cdd..c535346 100644
--- a/src/xml_to_data/device_xml_to_data.h
+++ b/src/xml_to_data/device_xml_to_data.h
@@ -23,7 +23,7 @@ namespace Device
class XmlToDataBase : public ::XmlToData
{
public:
- XmlToDataBase() : _data(0) {}
+ XmlToDataBase(const TQString &folder) : XmlToData(folder), _data(0) {}
protected:
mutable Data *_data;
@@ -49,6 +49,7 @@ template <class DataType>
class XmlToData : public XmlToDataBase, public DataStreamer<DataType>
{
public:
+ XmlToData(const TQString &folder) : XmlToDataBase(folder) {}
virtual Device::Data *createData() const { return new DataType; }
DataType *data() { return static_cast<DataType *>(_data); }
const DataType *data() const { return static_cast<DataType *>(_data); }