void Hdf::append(const char *filename) { assert(filename && *filename); if (boost::ends_with(filename, ".ini")) { return; } CheckNeoError(hdf_read_file(getRaw(), (char*)filename)); }
const char *Hdf::toString() const { if (m_dump) { free(m_dump); m_dump = nullptr; } CheckNeoError(hdf_write_string(getRaw(), &m_dump)); return m_dump; }
void Hdf::append(const char *filename) { assert(filename && *filename); if (!(boost::contains(filename, ".hdf") || boost::ends_with(filename, ".hphp"))) { return; } CheckNeoError(hdf_read_file(getRaw(), (char*)filename)); }
void Hdf::write(const char *filename) const { CheckNeoError(hdf_write_file(getRaw(), filename)); }
void Hdf::fromString(const char *input) { CheckNeoError(hdf_read_string(getRaw(), (char*)input)); }
void Hdf::remove(const char *name) const { assert(name && *name); CheckNeoError(hdf_remove_tree(getRaw(), name)); }
void Hdf::set(const char *value) { CheckNeoError(hdf_set_value(getRaw(), nullptr, (char*)value)); }
void Hdf::copy(const Hdf &hdf) { CheckNeoError(hdf_copy(getRaw(), nullptr, hdf.getRaw())); }
void Hdf::append(const char *filename) { assert(filename && *filename); CheckNeoError(hdf_read_file(getRaw(), (char*)filename)); }