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

  1 karl  1.6 //%2006////////////////////////////////////////////////////////////////////////
  2 chuck 1.2 //
  3 karl  1.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) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 chuck 1.2 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.3 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8           // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9           // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10           // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.6 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12           // EMC Corporation; Symantec Corporation; The Open Group.
 13 chuck 1.2 //
 14           // Permission is hereby granted, free of charge, to any person obtaining a copy
 15           // of this software and associated documentation files (the "Software"), to
 16           // deal in the Software without restriction, including without limitation the
 17           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18           // sell copies of the Software, and to permit persons to whom the Software is
 19           // furnished to do so, subject to the following conditions:
 20 karl  1.6 // 
 21 chuck 1.2 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29           //
 30           //==============================================================================
 31           //
 32           // Authors: David Rosckes (rosckes@us.ibm.com)
 33           //          Bert Rivero (hurivero@us.ibm.com)
 34           //          Chuck Carmack (carmack@us.ibm.com)
 35           //          Brian Lucier (lucier@us.ibm.com)
 36           //
 37 david.dillard 1.4 // Modified By: David Dillard, VERITAS Software Corp.
 38                   //                  (david.dillard@veritas.com)
 39 aruran.ms     1.5 //              Aruran, IBM(ashanmug@in.ibm.com) for Bug# 3588
 40 chuck         1.2 //
 41                   //%/////////////////////////////////////////////////////////////////////////////
 42                   
 43                   #ifndef Pegasus_CQLChainedIdentifierRep_h
 44                   #define Pegasus_CQLChainedIdentifierRep_h
 45                   
 46                   #include <Pegasus/CQL/Linkage.h>
 47                   #include <Pegasus/Common/Array.h>
 48                   #include <Pegasus/Common/String.h>
 49                   #include <Pegasus/CQL/CQLIdentifier.h>
 50                   #include <Pegasus/Query/QueryCommon/QueryChainedIdentifierRep.h>
 51                   
 52 david.dillard 1.4 PEGASUS_NAMESPACE_BEGIN
 53 mike          1.7 class CQLFactory;
 54 david.dillard 1.4 /**
 55 chuck         1.2 CQLChainedIdentifier class is used for parsing (not resolving)
 56 david.dillard 1.4 the identifier portion of a CQL select statement.
 57 chuck         1.2 A couple examples of a CQLIdentifier:
 58                   
 59                     Class.EmbeddedObject.Property[3]
 60                     Class.Property#'OK'
 61                   
 62                   
 63                   The CQLChainedIdentifier class can parse and return each
 64                    section of a CQL identifier.  The possible sections are:
 65                   
 66                        class (optional)
 67                        zero or more embedded objects
 68                        property
 69                   
 70                   Note:  this must handle wildcard("*"), embedded objects, arrays, symbolic
 71                   constants, etc.
 72                      */
 73 mike          1.7 class CQLChainedIdentifierRep : public QueryChainedIdentifierRep
 74 chuck         1.2 {
 75                     public:
 76                   
 77                       CQLChainedIdentifierRep();
 78 david.dillard 1.4     /**  constructor
 79 chuck         1.2           Parses the string into the various components of a CQL identifier.
 80                             Throws parsing errors.
 81                         */
 82 aruran.ms     1.5     CQLChainedIdentifierRep(const String& inString);
 83 chuck         1.2 
 84                       CQLChainedIdentifierRep(const CQLIdentifier &id);
 85 david.dillard 1.4 
 86 chuck         1.2     CQLChainedIdentifierRep(const CQLChainedIdentifierRep* rep);
 87                   
 88                       ~CQLChainedIdentifierRep();
 89                   
 90                       CQLChainedIdentifierRep& operator=(const CQLChainedIdentifierRep& rhs);
 91                   
 92                       CQLIdentifier operator[](Uint32 index)const;
 93                   
 94                       Array<CQLIdentifier> getSubIdentifiers()const;
 95                   
 96                       CQLIdentifier getLastIdentifier()const;
 97 david.dillard 1.4 
 98 chuck         1.2     friend class CQLFactory;
 99                   
100                     private:
101                   
102 aruran.ms     1.5     void parse(const String& string);
103 chuck         1.2 
104                   };
105                   
106                   PEGASUS_NAMESPACE_END
107                   
108                   #endif /* Pegasus_CQLChainedIdentifierRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2