VR-Exchange 2.9 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
portal
addAttribute.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2012 MAK Technologies, Inc.
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#ifdef DtDEC_ATTRIBUTE
13
#undef DtDEC_ATTRIBUTE
14
#endif
15
49
#define DtDEC_ATTRIBUTE(T, N, n) \
50
public : \
51
void set##N(const T& val) { my##N = val;}\
52
const T& n() const { return my##N;} \
53
T& n() { return my##N;} \
54
protected: \
55
T my##N;
56
92
#define DtDEC_ATTRIBUTE_OVERLOAD( Type, Name, name, Attribute ) \
93
public : \
94
void set##Name( const Type& value ) \
95
{ \
96
my##Attribute = value; \
97
} \
98
const Type& name() const \
99
{ \
100
return my##Attribute; \
101
} \
102
Type& name() \
103
{ \
104
return my##Attribute; \
105
} \
106
protected: \
107
enum{}
/*enum{} is used so the macro and end with a simicolon. */
Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)