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

 1 martin 1.9 //%LICENSE////////////////////////////////////////////////////////////////
 2 martin 1.10 //
 3 martin 1.9  // Licensed to The Open Group (TOG) under one or more contributor license
 4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
 5             // this work for additional information regarding copyright ownership.
 6             // Each contributor licenses this file to you under the OpenPegasus Open
 7             // Source License; you may not use this file except in compliance with the
 8             // License.
 9 martin 1.10 //
10 martin 1.9  // Permission is hereby granted, free of charge, to any person obtaining a
11             // copy of this software and associated documentation files (the "Software"),
12             // to deal in the Software without restriction, including without limitation
13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14             // and/or sell copies of the Software, and to permit persons to whom the
15             // Software is furnished to do so, subject to the following conditions:
16 martin 1.10 //
17 martin 1.9  // The above copyright notice and this permission notice shall be included
18             // in all copies or substantial portions of the Software.
19 martin 1.10 //
20 martin 1.9  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 martin 1.10 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 martin 1.9  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 martin 1.10 //
28 martin 1.9  //////////////////////////////////////////////////////////////////////////
29 chuck  1.2  //
30             //%/////////////////////////////////////////////////////////////////////////////
31             
32             #ifndef Pegasus_CQLChainedIdentifierRep_h
33             #define Pegasus_CQLChainedIdentifierRep_h
34             
35             #include <Pegasus/CQL/Linkage.h>
36             #include <Pegasus/Common/Array.h>
37             #include <Pegasus/Common/String.h>
38             #include <Pegasus/CQL/CQLIdentifier.h>
39             #include <Pegasus/Query/QueryCommon/QueryChainedIdentifierRep.h>
40             
41 david.dillard 1.4  PEGASUS_NAMESPACE_BEGIN
42 mike          1.7  class CQLFactory;
43 david.dillard 1.4  /**
44 chuck         1.2  CQLChainedIdentifier class is used for parsing (not resolving)
45 david.dillard 1.4  the identifier portion of a CQL select statement.
46 chuck         1.2  A couple examples of a CQLIdentifier:
47                    
48                      Class.EmbeddedObject.Property[3]
49                      Class.Property#'OK'
50                    
51                    
52                    The CQLChainedIdentifier class can parse and return each
53                     section of a CQL identifier.  The possible sections are:
54                    
55                         class (optional)
56                         zero or more embedded objects
57                         property
58                    
59                    Note:  this must handle wildcard("*"), embedded objects, arrays, symbolic
60                    constants, etc.
61                       */
62 mike          1.7  class CQLChainedIdentifierRep : public QueryChainedIdentifierRep
63 chuck         1.2  {
64                      public:
65                    
66                        CQLChainedIdentifierRep();
67 david.dillard 1.4      /**  constructor
68 chuck         1.2            Parses the string into the various components of a CQL identifier.
69                              Throws parsing errors.
70                          */
71 aruran.ms     1.5      CQLChainedIdentifierRep(const String& inString);
72 chuck         1.2  
73                        CQLChainedIdentifierRep(const CQLIdentifier &id);
74 david.dillard 1.4  
75 chuck         1.2      CQLChainedIdentifierRep(const CQLChainedIdentifierRep* rep);
76                    
77                        ~CQLChainedIdentifierRep();
78                    
79                        CQLIdentifier operator[](Uint32 index)const;
80                    
81                        Array<CQLIdentifier> getSubIdentifiers()const;
82                    
83                        CQLIdentifier getLastIdentifier()const;
84 david.dillard 1.4  
85 chuck         1.2      friend class CQLFactory;
86                    
87                      private:
88                    
89 kumpf         1.8      CQLChainedIdentifierRep(const CQLChainedIdentifierRep& rhs);
90                        CQLChainedIdentifierRep& operator=(const CQLChainedIdentifierRep& rhs);
91                    
92 aruran.ms     1.5      void parse(const String& string);
93 chuck         1.2  };
94                    
95                    PEGASUS_NAMESPACE_END
96                    
97                    #endif /* Pegasus_CQLChainedIdentifierRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2