Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
OpenKarto
source
OpenKarto
MetaAttribute.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2011, SRI International (R)
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#pragma once
19
20
#ifndef __OpenKarto_MetaAttribute_h__
21
#define __OpenKarto_MetaAttribute_h__
22
23
#include <
OpenKarto/String.h
>
24
#include <
OpenKarto/Any.h
>
25
26
namespace
karto
27
{
28
30
31
35
36
template
<
typename
T>
class
MetaClassHelper
;
37
38
struct
MetaAttributePrivate
;
39
43
47
class
KARTO_EXPORT
MetaAttribute
48
{
49
public
:
53
virtual
~
MetaAttribute
();
54
55
public
:
61
kt_bool
HasAttribute(
const
karto::String
& rId)
const
;
62
68
const
Any
& GetAttribute(
const
karto::String
& rId)
const
;
69
70
protected
:
74
MetaAttribute
();
75
81
void
AddAttribute(
const
karto::String
& rId,
const
Any
& rValue)
const
;
82
83
private
:
84
template
<
typename
T>
friend
class
MetaClassHelper
;
85
86
MetaAttributePrivate
*
m_pPrivate
;
87
};
88
90
91
}
92
93
#endif // __OpenKarto_MetaAttribute_h__
karto::MetaAttribute::m_pPrivate
MetaAttributePrivate * m_pPrivate
Definition:
MetaAttribute.h:86
kt_bool
bool kt_bool
Definition:
Types.h:145
karto::Any
Definition:
Any.h:55
karto::MetaClassHelper
Definition:
MetaAttribute.h:36
karto::String
Definition:
String.h:52
KARTO_EXPORT
#define KARTO_EXPORT
Definition:
Macros.h:78
karto::MetaAttributePrivate
Definition:
MetaAttribute.cpp:29
karto
Definition:
Any.cpp:20
karto::MetaAttribute
Definition:
MetaAttribute.h:47
Any.h
String.h
nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Jun 6 2019 19:20:24