mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-01 11:52:54 +01:00
committed latest 1.3 snapshot
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Application.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/Application.cpp#25 $
|
||||
// $Id: //poco/Main/Util/src/Application.cpp#26 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
@@ -469,6 +469,10 @@ bool Application::findAppConfigFile(const std::string& appName, const std::strin
|
||||
|
||||
void Application::defineOptions(OptionSet& options)
|
||||
{
|
||||
for (SubsystemVec::iterator it = _subsystems.begin(); it != _subsystems.end(); ++it)
|
||||
{
|
||||
(*it)->defineOptions(options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// FilesystemConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/FilesystemConfiguration.cpp#7 $
|
||||
// $Id: //poco/Main/Util/src/FilesystemConfiguration.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "Poco/DirectoryIterator.h"
|
||||
#include "Poco/StringTokenizer.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include <fstream>
|
||||
#include "Poco/FileStream.h"
|
||||
|
||||
|
||||
using Poco::Path;
|
||||
@@ -81,7 +81,7 @@ bool FilesystemConfiguration::getRaw(const std::string& key, std::string& value)
|
||||
if (f.exists())
|
||||
{
|
||||
value.reserve((std::string::size_type) f.getSize());
|
||||
std::ifstream istr(Path::transcode(p.toString()).c_str());
|
||||
Poco::FileInputStream istr(p.toString());
|
||||
int c = istr.get();
|
||||
while (c != std::char_traits<char>::eof())
|
||||
{
|
||||
@@ -100,7 +100,7 @@ void FilesystemConfiguration::setRaw(const std::string& key, const std::string&
|
||||
File dir(p);
|
||||
dir.createDirectories();
|
||||
p.setFileName("data");
|
||||
std::ofstream ostr(Path::transcode(p.toString()).c_str());
|
||||
Poco::FileOutputStream ostr(p.toString());
|
||||
ostr.write(value.data(), (std::streamsize) value.length());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// IniFileConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/IniFileConfiguration.cpp#7 $
|
||||
// $Id: //poco/Main/Util/src/IniFileConfiguration.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/Path.h"
|
||||
#include <fstream>
|
||||
#include "Poco/FileStream.h"
|
||||
#include <locale>
|
||||
#include <set>
|
||||
|
||||
@@ -87,7 +87,7 @@ void IniFileConfiguration::load(std::istream& istr)
|
||||
|
||||
void IniFileConfiguration::load(const std::string& path)
|
||||
{
|
||||
std::ifstream istr(Path::transcode(path).c_str());
|
||||
Poco::FileInputStream istr(path);
|
||||
if (istr.good())
|
||||
load(istr);
|
||||
else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PropertyFileConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/PropertyFileConfiguration.cpp#7 $
|
||||
// $Id: //poco/Main/Util/src/PropertyFileConfiguration.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/Path.h"
|
||||
#include <fstream>
|
||||
#include "Poco/FileStream.h"
|
||||
#include <locale>
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ void PropertyFileConfiguration::load(std::istream& istr)
|
||||
|
||||
void PropertyFileConfiguration::load(const std::string& path)
|
||||
{
|
||||
std::ifstream istr(Path::transcode(path).c_str());
|
||||
Poco::FileInputStream istr(path);
|
||||
if (istr.good())
|
||||
load(istr);
|
||||
else
|
||||
@@ -106,7 +106,7 @@ void PropertyFileConfiguration::save(std::ostream& ostr) const
|
||||
|
||||
void PropertyFileConfiguration::save(const std::string& path) const
|
||||
{
|
||||
std::ofstream ostr(Path::transcode(path).c_str());
|
||||
Poco::FileOutputStream ostr(path);
|
||||
if (ostr.good())
|
||||
{
|
||||
save(ostr);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ServerApplication.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/ServerApplication.cpp#18 $
|
||||
// $Id: //poco/Main/Util/src/ServerApplication.cpp#19 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
@@ -70,7 +70,7 @@ namespace Util {
|
||||
|
||||
|
||||
#if defined(POCO_OS_FAMILY_WINDOWS)
|
||||
Poco::Event ServerApplication::_terminated;
|
||||
Poco::Event ServerApplication::_terminated;
|
||||
SERVICE_STATUS ServerApplication::_serviceStatus;
|
||||
SERVICE_STATUS_HANDLE ServerApplication::_serviceStatusHandle = 0;
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Subsystem.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/Subsystem.cpp#7 $
|
||||
// $Id: //poco/Main/Util/src/Subsystem.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
@@ -58,4 +58,9 @@ void Subsystem::reinitialize(Application& app)
|
||||
}
|
||||
|
||||
|
||||
void Subsystem::defineOptions(OptionSet& options)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
} } // namespace Poco::Util
|
||||
|
||||
Reference in New Issue
Block a user