OWLNext    7.0
Borland's Object Windows Library for the modern age
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
shddel.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// Copyright (c) 1991, 1996 by Borland International, All Rights Reserved
4//
5//
6//----------------------------------------------------------------------------
7
8#if !defined(OWL_SHDDEL_H)
9#define OWL_SHDDEL_H
10
11#include <owl/private/defs.h>
12#if defined(BI_HAS_PRAGMA_ONCE)
13# pragma once
14#endif
15
16
17
18namespace owl {
19
20
21//
22/// \class TShouldDelete
23// ~~~~~ ~~~~~~~~~~~~~
25{
26 public:
28 typedef TDelete DeleteType; // For compatibility
29
31
32 bool OwnsElements();
33 void OwnsElements(bool del);
34 bool DelObj(TDelete dt);
35
36 private:
37 TDelete ShouldDelete; ///< Is either Delete or NoDelete
38};
39
40//----------------------------------------------------------------------------
41// Inline implementation
42//
43
48
50{
51 return ShouldDelete == Delete;
52}
53
55{
56 ShouldDelete = del ? Delete : NoDelete;
57}
58
60{
61 return dt == Delete || (dt==DefDelete && ShouldDelete==Delete);
62}
63
64
65} // OWL namespace
66
67
68#endif // OWL_SHDDEL_H
bool OwnsElements()
Definition shddel.h:49
bool DelObj(TDelete dt)
Definition shddel.h:59
TShouldDelete(TDelete dt=Delete)
Definition shddel.h:44
TDelete DeleteType
Definition shddel.h:28
Object Windows Library (OWLNext Core)
Definition animctrl.h:22