xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::windows::wmi::Namespace Class Referencefinal

A connection to a WMI namespace on the local machine. More...

#include <xentara/utils/windows/wmi/Namespace.hpp>

Public Member Functions

 Namespace ()
 Default constructor.
 
internal operator bool () const noexcept
 Checks if the object is valid.
 
auto query (const wchar_t *query) const -> ResultSet
 Executes a query.
 

Detailed Description

A connection to a WMI namespace on the local machine.

See also
Locator::connect()

Constructor & Destructor Documentation

◆ Namespace()

xentara::utils::windows::wmi::Namespace::Namespace ( )

Default constructor.

Creates an invalid object that must be assigned a valid object before being used.

Member Function Documentation

◆ operator bool()

internal xentara::utils::windows::wmi::Namespace::operator bool ( ) const
explicitnoexcept

Checks if the object is valid.

Returns
Return true if the object is valid, or false if it is a default constructed object.

◆ query()

auto xentara::utils::windows::wmi::Namespace::query ( const wchar_t *  query) const -> ResultSet

Executes a query.

Exceptions
std::runtime_errorEn error occurred executing the query.