[Common] Some code cleanup
This commit is contained in:
parent
d803f149e7
commit
f5debf8304
|
@ -2,15 +2,6 @@
|
|||
#include <string>
|
||||
#include "stdtypes.h"
|
||||
|
||||
class CPathException
|
||||
{
|
||||
public:
|
||||
uint32_t m_dwErrorCode;
|
||||
|
||||
public:
|
||||
CPathException(uint32_t code = 0) : m_dwErrorCode(code) {}
|
||||
};
|
||||
|
||||
class CPath
|
||||
{
|
||||
//Enums
|
||||
|
@ -50,7 +41,7 @@ public:
|
|||
CPath(const CPath& rPath);
|
||||
CPath(const char * lpszPath);
|
||||
CPath(const char * lpszPath, const char * NameExten);
|
||||
CPath(const char * lpszPath, const std::string & NameExten);
|
||||
//CPath(const char * lpszPath, const std::string & NameExten);
|
||||
CPath(const std::string& strPath);
|
||||
CPath(const std::string& strPath, const char * NameExten);
|
||||
CPath(const std::string& strPath, const std::string& NameExten);
|
||||
|
@ -62,10 +53,6 @@ public:
|
|||
#endif
|
||||
virtual ~CPath();
|
||||
|
||||
//Setup & Cleanup
|
||||
inline void Init();
|
||||
inline void Exit();
|
||||
|
||||
//Operators
|
||||
CPath& operator = (const CPath& rPath);
|
||||
CPath& operator = (const char * lpszPath);
|
||||
|
@ -159,6 +146,10 @@ public:
|
|||
#endif
|
||||
|
||||
private:
|
||||
//Setup & Cleanup
|
||||
inline void Init();
|
||||
inline void Exit();
|
||||
|
||||
bool AttributesMatch(uint32_t dwTargetAttributes, uint32_t dwFileAttributes);
|
||||
|
||||
void cleanPathString(std::string& rDirectory) const;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <stdarg.h>
|
||||
|
||||
#include "MemTest.h"
|
||||
#include "Platform.h"
|
||||
#include "StdString.h"
|
||||
#include "CriticalSection.h"
|
||||
#include "FileClass.h"
|
||||
|
|
Loading…
Reference in New Issue