home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
OTHERUTI
/
TCPP30-1.ZIP
/
CLASSINC.ZIP
/
SHDDEL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-18
|
1KB
|
56 lines
/*------------------------------------------------------------------------*/
/* */
/* SHDDEL.H */
/* */
/* Copyright Borland International 1991 */
/* All Rights Reserved */
/* */
/*------------------------------------------------------------------------*/
#if !defined( __SHDDEL_H )
#define __SHDDEL_H
#if !defined( ___DEFS_H )
#include <_defs.h>
#endif // ___DEFS_H
_CLASSDEF(TShouldDelete)
class _CLASSTYPE TShouldDelete
{
public:
enum DeleteType { NoDelete, DefDelete, Delete };
TShouldDelete( DeleteType dt = Delete )
{
ownsElements( dt );
}
int ownsElements()
{
return shouldDelete == Delete;
}
void ownsElements( int del )
{
shouldDelete = (del == 0) ? NoDelete : Delete;
}
protected:
int delObj( DeleteType dt )
{
return dt == Delete || (dt==DefDelete && shouldDelete==Delete);
}
private:
DeleteType shouldDelete;
};
#endif // __SHDDEL_H