|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
macOS: the service's command line - launchd installs and starts it (the product's package), so it runs in the console alone More...
#include <dx_service.h>
Public Types | |
| typedef std::deque<std::string> | args |
Public Member Functions | |
| void | close() noexcept |
| void | initialize(const std::string& id= "", const ::DWORD(& access)[2]= {SC_MANAGER_ALL_ACCESS, SERVICE_ALL_ACCESS}, const std::string desc= "", const std::string& path= "") |
| void | install(const std::string& name) |
| void | open() |
| operator std::unique_ptr<::QUERY_SERVICE_CONFIGA>() | |
| operator std::unique_ptr<::SERVICE_DESCRIPTION>() | |
| operator ::SERVICE_STATUS_PROCESS() | |
| virtual void | operator <<(argsargs& argsargs) |
| virtual void | operator <<(const argsargs& argsargs) |
| parser(const std::string& id, const char* name, const decltype(dictionary)& dictionary, const std::string& path= {}) | |
| parser(const std::string& id, const char* name, const std::string& desc, const std::string& path) | |
| parser(const std::string& id, const char* name, const std::string& desc= {}, const decltype(dictionary)& dictionary= {}) | |
| parser(const std::string& id, const char* name, const std::string& desc= {}, const decltype(dictionary)& dictionary= {}, const std::string& path= {}) | |
| virtual void | quiet(const args &= {}) noexcept |
| void | remove() |
| void | stop() |
| dx::service::manager::enumerate promoted | this(::DWORD value) |
| dx::service::manager::status promoted | this(promoted::lock_t&& lock, const ::DWORD& value, const ::DWORD &) |
Public Attributes | |
| dx::service::manager::enumerate* | this |
| dx::service::manager::status* | this |
Protected Member Functions | |
| virtual void | arg(argsargs& argsargs) |
| bool | head() const noexcept override |
| virtual void | help(argsargs& argsargs) |
| virtual void | help_head() const noexcept |
| virtual void | indent(argsargs& argsargs) |
| virtual void | info(args &) |
| virtual void | install(argsargs& argsargs) |
| virtual void | kill(args &) |
| virtual void | load(argsargs& argsargs) |
| virtual void | no_args(const argsargs& argsargs) |
| virtual void | remove(args &) |
| virtual void | run(args &) |
| virtual void | run(args &) |
| auto | select(const std::string& id) |
| virtual void | start(argsargs& argsargs) |
| virtual void | stop(args &) |
| virtual void | version(const argsargs& argsargs= {}) |
Static Protected Member Functions | |
| template<typename value_t= int32_t> | |
| static std::optional<value_t> | value(argsargs& argsargs) |
| template<typename value_t= int32_t> | |
| static value_t | value(argsargs& argsargs, const char* name) |
| the next argument as a number of value_t, which the parameter named requires | |
| template<typename value_t> | |
| static value_t | value(argsargs& argsargs, value_t dflt) |
| the next argument as a number of value_t, the default where it is none | |
Protected Attributes | |
| ::DWORD | access{} |
| std::string | desc |
| std::map<std::deque<std::string>, dispatch> | dictionary |
| ::SC_HANDLE | handle{} |
| std::string | id |
| const char* | name{} |
| struct dx::parser:: { ... } | parameter |
| std::string | path |
| preference | preference{std::string{"SOFTWARE\\"}+ id, HKEY_LOCAL_MACHINE, static_cast<::REGSAM>(process::admin()? KEY_ALL_ACCESS: KEY_READ)} |
| ::SC_HANDLE | service{} |
macOS: the service's command line - launchd installs and starts it (the product's package), so it runs in the console alone
the service control command line: install, start, stop, remove and run in the console, on a dx::service::manager of its own. Its settings live under HKLM\SOFTWARE\<id>, writable where the process is elevated
|
inherited |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotectedvirtual |
|
inlinenoexceptinherited |
|
inlineoverrideprotectedvirtualnoexcept |
Reimplemented from dx::parser.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualnoexceptinherited |
Reimplemented in dx::select< parsers_t >, dx::test::driver< super_device_t, device_t, driver_t >, and dx::test::stream::driver< super_device_t, device_t, driver_t >.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtual |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in dx::install::parser, dx::select< parsers_t >, and dx::test::driver< super_device_t, device_t, driver_t >.
|
inlinevirtualinherited |
|
inlinevirtualnoexceptinherited |
|
inlineinherited |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedinherited |
|
inlineprotectedvirtual |
|
inlineinherited |
|
inlineprotectedvirtual |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticprotectedinherited |
the next argument where it is a number of value_t, consumed: $ and 0x hexadecimal, decimal otherwise - none where it is no number or outside value_t
|
inlinestaticprotectedinherited |
the next argument as a number of value_t, which the parameter named requires
|
inlinestaticprotectedinherited |
the next argument as a number of value_t, the default where it is none
|
inlineprotectedvirtualinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
| struct { ... } dx::parser::parameter |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
inherited |
|
inherited |