WebLVC 1.7d 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 VT MAK
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 Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (
www.mak.com
)