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

  1 chuck 1.1.2.11 //%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.11 // 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                //%/////////////////////////////////////////////////////////////////////////////
 34                
 35 humberto 1.1.2.1  #include "CQLChainedIdentifier.h"
 36 humberto 1.1.2.5  #include "CQLChainedIdentifierRep.h"
 37 humberto 1.1.2.7  #include <Pegasus/CQL/CQLFactory.h>
 38 humberto 1.1.2.1  PEGASUS_NAMESPACE_BEGIN
 39                   
 40 chuck    1.1.2.9  #define PEGASUS_ARRAY_T CQLChainedIdentifier
 41                   #include <Pegasus/Common/ArrayImpl.h>
 42                   #undef PEGASUS_ARRAY_T
 43                   
 44 humberto 1.1.2.8  CQLChainedIdentifier::CQLChainedIdentifier(){
 45                   	_rep = new CQLChainedIdentifierRep();
 46                   }
 47                   
 48 humberto 1.1.2.1  CQLChainedIdentifier::CQLChainedIdentifier(String inString)
 49                   {
 50 humberto 1.1.2.5  	_rep = new CQLChainedIdentifierRep(inString);
 51 humberto 1.1.2.1  }
 52                   
 53 humberto 1.1.2.2  CQLChainedIdentifier::CQLChainedIdentifier(CQLIdentifier &id)
 54                   {
 55 humberto 1.1.2.5          _rep = new CQLChainedIdentifierRep(id);
 56 humberto 1.1.2.2  }
 57                   
 58 humberto 1.1.2.3  CQLChainedIdentifier::CQLChainedIdentifier(const CQLChainedIdentifier& cid){
 59 humberto 1.1.2.5  	_rep = new CQLChainedIdentifierRep(*(cid._rep));
 60 humberto 1.1.2.3  }
 61 humberto 1.1.2.6  CQLChainedIdentifier::~CQLChainedIdentifier(){
 62                   	if(_rep)
 63                   		delete _rep;
 64 humberto 1.1.2.8  	
 65                   	//printf("~CQLChainedIdentifier()\n");
 66 humberto 1.1.2.6  }
 67 humberto 1.1.2.1  const Array<CQLIdentifier>& CQLChainedIdentifier::getSubIdentifiers()const
 68                   {
 69 humberto 1.1.2.5  	return _rep->getSubIdentifiers();
 70 humberto 1.1.2.1  }
 71                   
 72 humberto 1.1.2.2  CQLIdentifier CQLChainedIdentifier::getLastIdentifier(){
 73 humberto 1.1.2.5  	return _rep->getLastIdentifier();
 74 humberto 1.1.2.2  }
 75                   
 76 humberto 1.1.2.1  String CQLChainedIdentifier::toString()const{
 77 humberto 1.1.2.5  	return _rep->toString();
 78 humberto 1.1.2.1  }
 79                   
 80 humberto 1.1.2.2  void CQLChainedIdentifier::append(CQLIdentifier & id){
 81 humberto 1.1.2.5  	_rep->append(id);
 82 humberto 1.1.2.2  }
 83                   
 84 humberto 1.1.2.4  Boolean CQLChainedIdentifier::isSubChain(CQLChainedIdentifier & chain){
 85 humberto 1.1.2.5  	return _rep->isSubChain(chain);
 86 humberto 1.1.2.4  }
 87                   
 88                   CQLIdentifier& CQLChainedIdentifier::operator[](Uint32 index){
 89 humberto 1.1.2.5  	return _rep->operator[](index);
 90 humberto 1.1.2.4  }
 91                   
 92 humberto 1.1.2.8  CQLChainedIdentifier& CQLChainedIdentifier::operator=(const CQLChainedIdentifier& rhs){
 93                   	if(&rhs != this){
 94                   		//printf("rhs != this\n");
 95                   		if(_rep) delete _rep;
 96                           	_rep = new CQLChainedIdentifierRep(rhs._rep);
 97                   	}
 98                   	//printf("CQLChainedIdentifier::operator=\n");
 99                   	return *this;
100                   }
101                   
102 humberto 1.1.2.4  Uint32 CQLChainedIdentifier::size(){
103 humberto 1.1.2.5  	return _rep->size();
104 humberto 1.1.2.4  }
105                   
106                   Boolean CQLChainedIdentifier::prepend(CQLIdentifier & id){
107 humberto 1.1.2.5  	return _rep->prepend(id);
108 humberto 1.1.2.4  }
109                   
110 chuck    1.1.2.10 void CQLChainedIdentifier::applyContext(QueryContext& inContext)
111                   {
112                     return _rep->applyContext(inContext);
113 humberto 1.1.2.3  }
114                   
115 humberto 1.1.2.1  void CQLChainedIdentifier::parse(String & string){
116                   }
117                   
118                   PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2