Merge pull request #742 from siemens/wince

WinCE methods missing
This commit is contained in:
Günter Obiltschnig 2015-03-11 15:52:52 +01:00
commit 02b5033834
3 changed files with 37 additions and 10 deletions

View File

@ -30,14 +30,18 @@ namespace Poco {
class Foundation_API PathImpl
{
public:
static std::string currentImpl();
// Returns the root directory
static std::string homeImpl();
static std::string tempImpl();
static std::string nullImpl();
static std::string systemImpl();
static std::string expandImpl(const std::string& path);
static void listRootsImpl(std::vector<std::string>& roots);
static std::string currentImpl();
static std::string homeImpl();
static std::string configHomeImpl();
static std::string dataHomeImpl();
static std::string cacheHomeImpl();
static std::string tempHomeImpl();
static std::string tempImpl();
static std::string configImpl();
static std::string nullImpl();
static std::string systemImpl();
static std::string expandImpl(const std::string& path);
static void listRootsImpl(std::vector<std::string>& roots);
enum
{

View File

@ -152,7 +152,7 @@ inline void ThreadImpl::setAffinityImpl(unsigned cpu)
throw Poco::NotImplementedException("Thread affinity not supported on this system");
}
inline unsigned ThreadImpl::getAffinityImpl()
inline unsigned ThreadImpl::getAffinityImpl() const
{
throw Poco::NotImplementedException("Thread affinity not supported on this system");
}

View File

@ -31,12 +31,35 @@ std::string PathImpl::currentImpl()
return("\\");
}
std::string PathImpl::homeImpl()
{
return("\\");
}
std::string PathImpl::configHomeImpl()
{
return homeImpl();
}
std::string PathImpl::dataHomeImpl()
{
return homeImpl();
}
std::string PathImpl::cacheHomeImpl()
{
return homeImpl();
}
std::string PathImpl::tempHomeImpl()
{
return tempImpl();
}
std::string PathImpl::configImpl()
{
return("\\");
}
std::string PathImpl::systemImpl()
{