From 1b8a7c16649bb14ef6ff9f1119daaecb7fb1d7cc Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 11 Mar 2015 11:30:10 +0100 Subject: [PATCH 1/2] Add missing Path implementations for WINCE --- Foundation/include/Poco/Path_WINCE.h | 20 ++++++++++++-------- Foundation/src/Path_WINCE.cpp | 25 ++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/Foundation/include/Poco/Path_WINCE.h b/Foundation/include/Poco/Path_WINCE.h index 612c583bd..cb7d2aacd 100644 --- a/Foundation/include/Poco/Path_WINCE.h +++ b/Foundation/include/Poco/Path_WINCE.h @@ -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& 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& roots); enum { diff --git a/Foundation/src/Path_WINCE.cpp b/Foundation/src/Path_WINCE.cpp index 87dda31c5..96b7c67fb 100644 --- a/Foundation/src/Path_WINCE.cpp +++ b/Foundation/src/Path_WINCE.cpp @@ -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() { From 745d5fb02541f13f1da9a6795d547e899570876d Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 11 Mar 2015 11:31:10 +0100 Subject: [PATCH 2/2] Add missing const in ThreadImpl::getAffinityImpl for WINCE --- Foundation/include/Poco/Thread_WINCE.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/include/Poco/Thread_WINCE.h b/Foundation/include/Poco/Thread_WINCE.h index 9b715a50b..dcaf3be28 100644 --- a/Foundation/include/Poco/Thread_WINCE.h +++ b/Foundation/include/Poco/Thread_WINCE.h @@ -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"); }