8 #ifndef MFileSystem_StrongObjects_h 9 #define MFileSystem_StrongObjects_h 18 #include "../FileSystem/File.h" 19 #include "../FileSystem/Path.h" 28 if( iFileStream !=
NULL )
30 const int lResult = ::fclose(iFileStream);
64 if (iFileDescriptor >= 0)
67 const int lResult = ::_close(iFileDescriptor);
69 const int lResult =
::close(iFileDescriptor);
130 int iData = iStrongObj.GiveUp();
167 mPath.swap( iorOther.mPath );
177 mPath.swap( iorOther.mPath );
183 return mPath.c_str();
191 void Attach(
const char* ipPath )
throw()
202 if( mPath.length() > 0 )
215 #endif // MFileSystem_StrongObjects_h Definition: StrongObj.h:20
static bool Delete(const char *ipPath)
StrongObj(int ipData=NULL)
Definition: StrongObj.h:23
StrongFileDescriptor()
Definition: StrongObjects.h:108
Definition: StrongObjects.h:58
StrongFilename(const char *ipPath)
Definition: StrongObjects.h:160
void Acquire(StrongFileDescriptor &iStrongObj)
Definition: StrongObjects.h:128
int mData
Definition: StrongBase.h:80
Definition: StrongObjects.h:23
void operator()(FILE *iFileStream)
Definition: StrongObjects.h:26
int Get() const
Definition: StrongObjects.h:118
void Dismiss()
Definition: StrongObjects.h:186
StrongFilename(StrongFilename &iorOther)
Definition: StrongObjects.h:165
Definition: Allocator.h:47
Definition: StrongObjects.h:103
void Attach(const char *ipPath)
Definition: StrongObjects.h:191
void Acquire(int &irData)
Definition: StrongObjects.h:134
void Reset()
Definition: StrongObjects.h:139
StrongFilename & operator=(StrongFilename &iorOther)
Definition: StrongObjects.h:175
bool IsNull()
Definition: StrongObjects.h:123
Definition: StrongObjects.h:157
~StrongFilename()
Definition: StrongObjects.h:170
const char * c_str() const
Definition: StrongObjects.h:181
MBase::StrongObj< FILE *, CloseFileStream > StrongFileStream
Definition: StrongObjects.h:98
#define NULL
Definition: Null.h:10
Definition: StrongObjects.h:21
void operator()(int iFileDescriptor)
Definition: StrongObjects.h:61
StrongFileDescriptor(int iDescriptor)
Definition: StrongObjects.h:113