mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-29 04:06:51 +01:00
committed latest 1.3 snapshot
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Application.h
|
||||
//
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Application.h#12 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Application.h#14 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
@@ -299,7 +299,8 @@ protected:
|
||||
/// Called before command line processing begins.
|
||||
/// If a subclass wants to support command line arguments,
|
||||
/// it must override this method.
|
||||
/// The default implementation does not define any options.
|
||||
/// The default implementation does not define any options itself,
|
||||
/// but calls defineOptions() on all registered subsystems.
|
||||
///
|
||||
/// Overriding implementations should call the base class implementation.
|
||||
|
||||
@@ -441,7 +442,7 @@ inline Poco::Timespan Application::uptime() const
|
||||
//
|
||||
// Macro to implement main()
|
||||
//
|
||||
#if defined(POCO_WIN32_UTF8)
|
||||
#if defined(_WIN32) && defined(POCO_WIN32_UTF8)
|
||||
#define POCO_APP_MAIN(App) \
|
||||
int wmain(int argc, wchar_t** argv) \
|
||||
{ \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ServerApplication.h
|
||||
//
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/ServerApplication.h#3 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/ServerApplication.h#4 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
@@ -194,7 +194,7 @@ private:
|
||||
//
|
||||
// Macro to implement main()
|
||||
//
|
||||
#if defined(POCO_WIN32_UTF8)
|
||||
#if defined(_WIN32) && defined(POCO_WIN32_UTF8)
|
||||
#define POCO_SERVER_MAIN(App) \
|
||||
int wmain(int argc, wchar_t** argv) \
|
||||
{ \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Subsystem.h
|
||||
//
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Subsystem.h#2 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Subsystem.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
@@ -49,6 +49,7 @@ namespace Util {
|
||||
|
||||
|
||||
class Application;
|
||||
class OptionSet;
|
||||
|
||||
|
||||
class Util_API Subsystem: public Poco::RefCountedObject
|
||||
@@ -92,6 +93,16 @@ protected:
|
||||
/// less radical and possibly more performant
|
||||
/// approach.
|
||||
|
||||
virtual void defineOptions(OptionSet& options);
|
||||
/// Called before the Application's command line processing begins.
|
||||
/// If a subsystem wants to support command line arguments,
|
||||
/// it must override this method.
|
||||
/// The default implementation does not define any options.
|
||||
///
|
||||
/// To effectively handle options, a subsystem should either bind
|
||||
/// the option to a configuration property or specify a callback
|
||||
/// to handle the option.
|
||||
|
||||
virtual ~Subsystem();
|
||||
/// Destroys the Subsystem.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SystemConfiguration.h
|
||||
//
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/SystemConfiguration.h#2 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/SystemConfiguration.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -66,7 +66,7 @@ class Util_API SystemConfiguration: public AbstractConfiguration
|
||||
/// InvalidAccessException being thrown.
|
||||
///
|
||||
/// Enumerating environment variables is not supported.
|
||||
/// An attemp to call keys("system.env") will return an empty range.
|
||||
/// An attempt to call keys("system.env") will return an empty range.
|
||||
{
|
||||
public:
|
||||
SystemConfiguration();
|
||||
|
||||
Reference in New Issue
Block a user