author | František Kučera <franta-hg@frantovo.cz> |
Sat, 15 Sep 2018 22:52:15 +0200 | |
branch | v_0 |
changeset 24 | 6f7acc3b274c |
parent 22 | e81019af67dc |
child 25 | fc0d05b72214 |
permissions | -rw-r--r-- |
22
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
#pragma once |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
|
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
#include "../TypeId.h" |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
|
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
namespace relpipe { |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
namespace reader { |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
namespace handlers { |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
|
24
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
9 |
class AttributeMetadataPrivate; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
10 |
|
22
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
class AttributeMetadata { |
24
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
12 |
private: |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
13 |
AttributeMetadataPrivate* impl; |
22
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
public: |
24
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
15 |
~AttributeMetadata(); |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
16 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
17 |
AttributeMetadata() { |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
18 |
std::cout << "FIXME: why call AttributeMetadata() ?" << std::endl; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
19 |
} |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
20 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
21 |
AttributeMetadata(AttributeMetadataPrivate* impl) : |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
22 |
impl(impl) { |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
23 |
} |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
24 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
25 |
AttributeMetadata(const AttributeMetadata& other) : |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
26 |
impl(other.impl) { |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
27 |
} |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
28 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
29 |
string_t getAttributeName() const; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
30 |
relpipe::reader::TypeId getTypeId() const; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
31 |
string_t getTypeName() const; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
22
diff
changeset
|
32 |
|
22
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
}; |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
34 |
|
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
} |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
} |
e81019af67dc
use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
} |