1 humberto 1.1.2.1 #include "RepositoryQueryContext.h"
2
3 PEGASUS_NAMESPACE_BEGIN
4
5
6 RepositoryQueryContext::RepositoryQueryContext(CIMNamespaceName inNS, CIMRepository* inCIMRep):QueryContext(inNS){
7 _CIMRep = inCIMRep;
8 }
9
10 CIMClass RepositoryQueryContext::getClass(CIMName inClassName){
11 /* Hardcoded defaults */
12 Boolean localOnly = false;
13 Boolean includeQualifiers = true;
14 Boolean includeClassOrigin = false;
15 CIMPropertyList _emptyCIMPropertyList;
16
17 try{
18 CIMClass _class = _CIMRep->getClass(
19 getNamespace(),
20 inClassName,
21 localOnly,
22 humberto 1.1.2.1 includeQualifiers,
23 includeClassOrigin,
24 _emptyCIMPropertyList);
25 return _class;
26 }catch(Exception e){
27 // error
28 PEGASUS_STD(cout) << e.getMessage() << PEGASUS_STD(endl);
29 return CIMClass();
30 }
31
32 }
33
34 PEGASUS_NAMESPACE_END
35
|