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