include/relpipe/reader/handlers/AttributeMetadata.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 15 Sep 2018 22:52:15 +0200
branchv_0
changeset 24 6f7acc3b274c
parent 22 e81019af67dc
child 25 fc0d05b72214
permissions -rw-r--r--
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;

};

}
}
}