author | František Kučera <franta-hg@frantovo.cz> |
Sun, 16 Sep 2018 00:42:42 +0200 | |
branch | v_0 |
changeset 26 | 019edca46769 |
parent 24 | 6f7acc3b274c |
child 29 | 755978b0935c |
permissions | -rw-r--r-- |
24
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
#pragma once |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
#include "../include/relpipe/reader/typedefs.h" |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
#include "../include/relpipe/reader/TypeId.h" |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
#include "../include/relpipe/reader/handlers/AttributeMetadata.h" |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
namespace relpipe { |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
namespace reader { |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
namespace handlers { |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
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:
diff
changeset
|
12 |
public: |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
string_t attributeName; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
relpipe::reader::TypeId typeId; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
string_t typeName; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
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:
diff
changeset
|
17 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
string_t AttributeMetadata::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:
diff
changeset
|
19 |
return impl->attributeName; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
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:
diff
changeset
|
21 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
relpipe::reader::TypeId AttributeMetadata::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:
diff
changeset
|
23 |
return impl->typeId; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
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:
diff
changeset
|
25 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
string_t AttributeMetadata::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:
diff
changeset
|
27 |
return impl->typeName; |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
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:
diff
changeset
|
29 |
|
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
} |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
} |
6f7acc3b274c
AttributeMetadata: pImpl / d-pointer version but with memory-leak and unwanted empty constructor
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
} |