OW_NAMESPACE::WQLImpl Class Reference

#include <OW_WQLImpl.hpp>

Inheritance diagram for OW_NAMESPACE::WQLImpl:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::WQLImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~WQLImpl ()
String getName () const
 Every service may have a name.
virtual void init (const ServiceEnvironmentIFCRef &env)
 init() will be called to give the derived class an opportunity to initialize itself.
virtual void shutdown ()
 The service must shutdown completely before returning from this function.
virtual void evaluate (const String &nameSpace, CIMInstanceResultHandlerIFC &result, const String &query, const String &queryLanguage, const CIMOMHandleIFCRef &hdl)
virtual WQLSelectStatement createSelectStatement (const String &query)
virtual bool supportsQueryLanguage (const String &lang)

Static Public Member Functions

static stmt * setStatement (stmt *statement)
static const char * getParserInput ()

Static Private Attributes

static Mutex s_classLock
static const char * s_parserInput = 0
static stmt * s_statement = 0

Detailed Description

Definition at line 49 of file OW_WQLImpl.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::WQLImpl::~WQLImpl  )  [virtual]
 

Definition at line 52 of file OW_WQLImpl.cpp.


Member Function Documentation

WQLSelectStatement OW_NAMESPACE::WQLImpl::createSelectStatement const String query  )  [virtual]
 

Implements OW_NAMESPACE::WQLIFC.

Definition at line 107 of file OW_WQLImpl.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::AutoPtr< X >::get(), OW_NAMESPACE::CIMException::INVALID_QUERY, OW_THROWCIMMSG, owwqldebug, owwqlparse(), OW_NAMESPACE::MutexLock::release(), s_classLock, s_parserInput, s_statement, and WQLscanner_init().

void OW_NAMESPACE::WQLImpl::evaluate const String nameSpace,
CIMInstanceResultHandlerIFC result,
const String query,
const String queryLanguage,
const CIMOMHandleIFCRef hdl
[virtual]
 

Implements OW_NAMESPACE::WQLIFC.

Definition at line 62 of file OW_WQLImpl.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::AutoPtr< X >::get(), hdl, OW_NAMESPACE::CIMException::INVALID_QUERY, OW_THROWCIMMSG, owwqldebug, owwqlparse(), OW_NAMESPACE::MutexLock::release(), s_classLock, s_parserInput, s_statement, and WQLscanner_init().

String OW_NAMESPACE::WQLImpl::getName  )  const [virtual]
 

Every service may have a name.

The name is used to calculate dependencies, other services can return the name from getDependencies(), to instruct the cimom about which order to start and shutdown all the services. The default is to have no name, in that case, no other service can depend on it.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 57 of file OW_WQLImpl.cpp.

References OW_NAMESPACE::ServiceIFCNames::WQL.

static const char* OW_NAMESPACE::WQLImpl::getParserInput  )  [inline, static]
 

Definition at line 71 of file OW_WQLImpl.hpp.

void OW_NAMESPACE::WQLImpl::init const ServiceEnvironmentIFCRef env  )  [virtual]
 

init() will be called to give the derived class an opportunity to initialize itself.

Do not create threads which interact with the environment until start() is called. During the loading/initializing phase, the environment is single-threaded.

Parameters:
env The service's interface to it's environment. A copy of this may be saved and re-used. All copies of env or objects obtained by calling member functions of env should be set to 0 in shutdown() to prevent circular reference counts.

Implements OW_NAMESPACE::ServiceIFC.

Definition at line 163 of file OW_WQLImpl.cpp.

static stmt* OW_NAMESPACE::WQLImpl::setStatement stmt *  statement  )  [inline, static]
 

Definition at line 65 of file OW_WQLImpl.hpp.

void OW_NAMESPACE::WQLImpl::shutdown  )  [virtual]
 

The service must shutdown completely before returning from this function.

All copies of the service environment or objects obtained from it should be set to 0 to avoid circular reference counts.

Implements OW_NAMESPACE::ServiceIFC.

Definition at line 169 of file OW_WQLImpl.cpp.

bool OW_NAMESPACE::WQLImpl::supportsQueryLanguage const String lang  )  [virtual]
 

Implements OW_NAMESPACE::WQLIFC.

Definition at line 141 of file OW_WQLImpl.cpp.

References OW_NAMESPACE::String::equalsIgnoreCase().


Member Data Documentation

Mutex OW_NAMESPACE::WQLImpl::s_classLock [static, private]
 

Definition at line 76 of file OW_WQLImpl.hpp.

Referenced by createSelectStatement(), and evaluate().

const char * OW_NAMESPACE::WQLImpl::s_parserInput = 0 [static, private]
 

Definition at line 77 of file OW_WQLImpl.hpp.

Referenced by createSelectStatement(), and evaluate().

stmt * OW_NAMESPACE::WQLImpl::s_statement = 0 [static, private]
 

Definition at line 78 of file OW_WQLImpl.hpp.

Referenced by createSelectStatement(), and evaluate().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:16:58 2006 for openwbem by  doxygen 1.4.6