13#include "MantidNexus/NexusFile.h"
17#define PROPERTYWITHVALUE_SAVEPROPERTY(type) \
18 template <> void PropertyWithValue<type>::saveProperty(Nexus::File *file) { \
19 file->makeGroup(this->name(), "NXlog", true); \
20 file->writeData("value", m_value); \
21 file->openData("value"); \
22 file->putAttr("units", this->units()); \
38template class MANTID_KERNEL_DLL PropertyWithValue<uint16_t>;
39template class MANTID_KERNEL_DLL PropertyWithValue<bool>;
40template class MANTID_KERNEL_DLL PropertyWithValue<OptionalBool>;
41template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<float>>;
42template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<uint16_t>>;
43template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<uint32_t>>;
44template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<int64_t>>;
45template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<uint64_t>>;
46template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<bool>>;
47template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<OptionalBool>>;
48template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<std::string>>;
49template class MANTID_KERNEL_DLL PropertyWithValue<Matrix<float>>;
50template class MANTID_KERNEL_DLL PropertyWithValue<Matrix<double>>;
51template class MANTID_KERNEL_DLL PropertyWithValue<Matrix<int>>;
52template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<std::vector<int32_t>>>;
53template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<std::vector<std::string>>>;
54template class MANTID_KERNEL_DLL PropertyWithValue<std::shared_ptr<PropertyManager>>;
55#if defined(_WIN32) || defined(__clang__) && defined(__APPLE__)
58 file->makeGroup(this->
name(),
"NXlog",
true);
59 file->writeData(
"value",
static_cast<int64_t
>(
m_value));
60 file->openData(
"value");
61 file->putAttr(
"units", this->units());
65template class MANTID_KERNEL_DLL PropertyWithValue<long>;
66template class MANTID_KERNEL_DLL PropertyWithValue<unsigned long>;
67template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<long>>;
68template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<unsigned long>>;
69template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<std::vector<long>>>;
72template class MANTID_KERNEL_DLL PropertyWithValue<long long>;
73template class MANTID_KERNEL_DLL PropertyWithValue<unsigned long long>;
74template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<long long>>;
75template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<unsigned long long>>;
76template class MANTID_KERNEL_DLL PropertyWithValue<std::vector<std::vector<long long>>>;
85template class PropertyWithValue<float>;
86template class PropertyWithValue<double>;
87template class PropertyWithValue<int32_t>;
88template class PropertyWithValue<uint32_t>;
89template class PropertyWithValue<int64_t>;
90template class PropertyWithValue<uint64_t>;
92template class PropertyWithValue<std::vector<double>>;
93template class PropertyWithValue<std::vector<int32_t>>;
95template class PropertyWithValue<std::string>;
const std::string & m_value
#define PROPERTYWITHVALUE_SAVEPROPERTY(type)
void saveProperty(Nexus::File *file) override