(file) Return to QueryContext.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / CQL

 1 chuck 1.1.2.3 //%2004////////////////////////////////////////////////////////////////////////
 2               //
 3               // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development
 4               // Company, L. P., IBM Corp., The Open Group, Tivoli Systems.
 5               // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L. P.;
 6               // IBM Corp.; EMC Corporation, The Open Group.
 7               //
 8               // Permission is hereby granted, free of charge, to any person obtaining a copy
 9               // of this software and associated documentation files (the "Software"), to
10               // deal in the Software without restriction, including without limitation the
11               // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12               // sell copies of the Software, and to permit persons to whom the Software is
13               // furnished to do so, subject to the following conditions:
14               // 
15               // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
16               // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
17               // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
18               // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
19               // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20               // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21               // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 chuck 1.1.2.3 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23               //
24               //==============================================================================
25               //
26               // Authors: David Rosckes (rosckes@us.ibm.com)
27               //          Bert Rivero (hurivero@us.ibm.com)
28               //          Chuck Carmack (carmack@us.ibm.com)
29               //          Brian Lucier (lucier@us.ibm.com)
30               //
31               // Modified By: 
32               // 
33               // Modified By:
34               //
35               //%/////////////////////////////////////////////////////////////////////////////
36               
37 humberto 1.1.2.1 #ifndef Pegasus_QueryContext_h
38                  #define Pegasus_QueryContext_h
39 chuck    1.1.2.3 
40 humberto 1.1.2.1 #include <Pegasus/Common/Config.h>
41                  #include <Pegasus/CQL/Linkage.h>
42                  #include <Pegasus/Common/CIMName.h>
43                  #include <Pegasus/Common/CIMClass.h>
44                  #include <Pegasus/Common/Array.h>
45                  #include <Pegasus/Common/HashTable.h>
46                  #include <Pegasus/CQL/CQLIdentifier.h>
47                  #include <Pegasus/Common/String.h>
48                  
49                  PEGASUS_NAMESPACE_BEGIN
50                  
51                  typedef HashTable<String, CQLIdentifier, EqualFunc<String>, HashFunc<String> > HT_Alias_Class;
52                  
53                  class PEGASUS_CQL_LINKAGE QueryContext
54                  {
55                     public:
56                  
57 chuck    1.1.2.3 	virtual ~QueryContext();
58 humberto 1.1.2.1 
59 chuck    1.1.2.3         virtual CIMClass getClass(const CIMName& inClassName) = 0;
60 humberto 1.1.2.1 
61                          String getHost(Boolean fullyQualified = true);
62                  
63 chuck    1.1.2.3         CIMNamespaceName getNamespace() const;
64 humberto 1.1.2.1 
65 humberto 1.1.2.2         void insertClassPath(const CQLIdentifier& inIdentifier, String inAlias = String::EMPTY);
66 humberto 1.1.2.1 
67 chuck    1.1.2.3         CQLIdentifier findClass(const String& inAlias);
68 humberto 1.1.2.1 
69 chuck    1.1.2.3         Array<CQLIdentifier> getFromList() const;
70 humberto 1.1.2.1 
71                     protected:
72 chuck    1.1.2.3 
73                  	QueryContext(const QueryContext& ctx);
74                  
75                          QueryContext(CIMNamespaceName& inNS);
76                  
77                  	QueryContext& operator=(const QueryContext& rhs);
78 humberto 1.1.2.1           
79                     private: 
80                  
81 chuck    1.1.2.3 	QueryContext();
82                  
83 humberto 1.1.2.1         // members
84                          CIMNamespaceName _NS;
85                  	HT_Alias_Class _AliasClassTable;
86                  	Array<CQLIdentifier> _fromList;
87                  };
88                  
89                  PEGASUS_NAMESPACE_END
90                  #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2