AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
#pragma once
#include "../TypeId.h"
namespace relpipe {
namespace reader {
namespace handlers {
class AttributeMetadataPrivate;
class AttributeMetadata {
private:
AttributeMetadataPrivate* impl;
public:
~AttributeMetadata();
AttributeMetadata() {
std::cout << "FIXME: why call AttributeMetadata() ?" << std::endl;
}
AttributeMetadata(AttributeMetadataPrivate* impl) :
impl(impl) {
}
AttributeMetadata(const AttributeMetadata& other) :
impl(other.impl) {
}
string_t getAttributeName() const;
relpipe::reader::TypeId getTypeId() const;
string_t getTypeName() const;
};
}
}
}