FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AcRxOverrule.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
20class AcRxObject;
21class OdRxClass;
22
24{
25public:
27
28 virtual bool isApplicable(const AcRxObject*) const = 0;
29 static Acad::ErrorStatus addOverrule( AcRxClass*, AcRxOverrule*, bool = false );
30 static Acad::ErrorStatus removeOverrule( AcRxClass*, AcRxOverrule* );
31
32 static void setIsOverruling( bool );
33 static bool isOverruling(void);
34
35 static bool hasOverrule(const AcRxObject* , AcRxClass* );
36 virtual ~AcRxOverrule(void);
37
38private:
39 static bool m_bIsOverruling;
40};
static bool hasOverrule(const AcRxObject *, AcRxClass *)
ACRX_DECLARE_MEMBERS(AcRxOverrule)
virtual bool isApplicable(const AcRxObject *) const =0
static Acad::ErrorStatus removeOverrule(AcRxClass *, AcRxOverrule *)
static void setIsOverruling(bool)
static Acad::ErrorStatus addOverrule(AcRxClass *, AcRxOverrule *, bool=false)
virtual ~AcRxOverrule(void)
static bool isOverruling(void)