You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
738 B

/*
* Turbo Vision - Version 2.0
*
* Copyright (c) 1994 by Borland International
* All Rights Reserved.
*
Modified by Robert H”hne to be used for RHIDE.
*
*
*/
#if defined( Uses_TDirEntry ) && !defined( __TDirEntry )
#define __TDirEntry
class TDirEntry
{
public:
TDirEntry( const char *, const char * );
~TDirEntry();
char *dir() { return directory; }
char *text() { return displayText; }
private:
char *displayText;
char *directory;
};
inline TDirEntry::TDirEntry( const char *txt, const char *dir ) :
displayText( newStr( txt ) ), directory( newStr( dir ) )
{
}
inline TDirEntry::~TDirEntry()
{
delete[] displayText;
delete[] directory;
}
#endif // Uses_TDirEntry