FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AcDbAssocVariable.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19#include "..\acad\Acad.h"
20
21class AcDbEvalVariant;
22class AcDbObjectId;
23class AcRxClass;
24class AcRxObject;
25class AcString;
26
27template<typename T> class ByRef {
28public:
30 }
31
32 ByRef(const T value) : mValue(value) {
33 }
34
35 operator T& () const {
36 return((T&)mValue);
37 }
38
39private:
40 T mValue;
41};
42
44{
45public:
50 AcDbEvalVariant const & value(void)const ;
52 AcString const & expression(void)const ;
53 AcString const & name(void)const ;
54 Acad::ErrorStatus evaluateExpression( AcDbEvalVariant &)const ;
55 Acad::ErrorStatus setExpression( AcString const &,bool,bool, AcString& = ByRef<AcString>(),bool = false);
56 Acad::ErrorStatus setName( AcString const &,bool);
57 Acad::ErrorStatus setValue( AcDbEvalVariant const &);
59
61
62
63};
AcDbAssocCreateImpObject
#define ACRX_DECLARE_MEMBERS(classname)
Definition addmacro.h:756
AcDbAssocVariable(AcDbAssocVariable const &)
AcString const & expression(void) const
Acad::ErrorStatus setValue(AcDbEvalVariant const &)
AcDbObjectId findObjectByName(AcString const &, AcRxClass const *) const
AcDbAssocVariable(AcDbAssocCreateImpObject)
Acad::ErrorStatus evaluateExpression(AcDbEvalVariant &) const
AcDbAssocVariable & operator=(AcDbAssocVariable const &)
AcString const & name(void) const
Acad::ErrorStatus setExpression(AcString const &, bool, bool, AcString &=ByRef< AcString >(), bool=false)
AcDbEvalVariant const & value(void) const
Acad::ErrorStatus setName(AcString const &, bool)
ByRef(const T value)