include/relpipe/reader/handlers/AttributeMetadata.h
author František Kučera <franta-hg@frantovo.cz>
Sun, 16 Sep 2018 00:42:42 +0200
branchv_0
changeset 26 019edca46769
parent 25 fc0d05b72214
child 29 755978b0935c
permissions -rw-r--r--
AttributeMetadata: use smart pointer and avoid memory-leak

#pragma once

#include <memory>

#include "../TypeId.h"

namespace relpipe {
namespace reader {
namespace handlers {

class AttributeMetadataPrivate;

class AttributeMetadata {
private:
	std::shared_ptr<AttributeMetadataPrivate> impl;
public:

	AttributeMetadata(std::shared_ptr<AttributeMetadataPrivate> impl) :
	impl(impl) {
	}

	AttributeMetadata(const AttributeMetadata& other) :
	impl(other.impl) {
	}

	string_t getAttributeName() const;
	relpipe::reader::TypeId getTypeId() const;
	string_t getTypeName() const;

};

}
}
}