[GME-commit] GMESRC/GME/Include/xercesc/internal BinFileOutputStream.cpp, NONE, 1.1 BinMemOutputStream.cpp, NONE, 1.1 BinMemOutputStream.hpp, NONE, 1.1 DGXMLScanner.cpp, NONE, 1.1 ElemStack.cpp, NONE, 1.1 IGXMLScanner.cpp, NONE, 1.1 IGXMLScanner2.cpp, NONE, 1.1 Makefile.in, NONE, 1.1 MemoryManagerArrayImpl.cpp, NONE, 1.1 MemoryManagerImpl.cpp, NONE, 1.1 ReaderMgr.cpp, NONE, 1.1 SGXMLScanner.cpp, NONE, 1.1 ValidationContextImpl.cpp, NONE, 1.1 VecAttrListImpl.cpp, NONE, 1.1 VecAttributesImpl.cpp, NONE, 1.1 WFXMLScanner.cpp, NONE, 1.1 XMLGrammarPoolImpl.cpp, NONE, 1.1 XMLReader.cpp, NONE, 1.1 XMLScanner.cpp, NONE, 1.1 XMLScannerResolver.cpp, NONE, 1.1 XProtoType.cpp, NONE, 1.1 XSAXMLScanner.cpp, NONE, 1.1 XSAXMLScanner.hpp, NONE, 1.1 XSObjectFactory.cpp, NONE, 1.1 XSerializeEngine.cpp, NONE, 1.1 XTemplateSerializer.cpp, NONE, 1.1 BinFileOutputStream.hpp, 1.1.1.1, 1.2 CharTypeTables.hpp, 1.1.1.1, 1.2 DGXMLScanner.hpp, 1.1.1.1, 1.2 ElemStack.hpp, 1.1.1.1, 1.2 EndOfEntityException.hpp, 1.1.1.1, 1.2 IGXMLScanner.hpp, 1.1.1.1, 1.2 MemoryManagerArrayI mpl.hpp, 1.1.1.1, 1.2 MemoryManagerImpl.hpp, 1.1.1.1, 1.2 ReaderMgr.hpp, 1.1.1.1, 1.2 SGXMLScanner.hpp, 1.1.1.1, 1.2 ValidationContextImpl.hpp, 1.1.1.1, 1.2 VecAttrListImpl.hpp, 1.1.1.1, 1.2 VecAttributesImpl.hpp, 1.1.1.1, 1.2 WFXMLScanner.hpp, 1.1.1.1, 1.2 XMLGrammarPoolImpl.hpp, 1.1.1.1, 1.2 XMLInternalErrorHandler.hpp, 1.1.1.1, 1.2 XMLReader.hpp, 1.1.1.1, 1.2 XMLScanner.hpp, 1.1.1.1, 1.2 XMLScannerResolver.hpp, 1.1.1.1, 1.2 XProtoType.hpp, 1.1.1.1, 1.2 XSObjectFactory.hpp, 1.1.1.1, 1.2 XSerializable.hpp, 1.1.1.1, 1.2 XSerializationException.hpp, 1.1.1.1, 1.2 XSerializeEngine.hpp, 1.1.1.1, 1.2 XTemplateSerializer.hpp, 1.1.1.1, 1.2

Log messages of CVS commits gme-commit at list.isis.vanderbilt.edu
Tue Feb 19 14:16:29 CST 2008


Update of /project/gme-repository/GMESRC/GME/Include/xercesc/internal
In directory escher:/tmp/cvs-serv26529/internal

Modified Files:
	BinFileOutputStream.hpp CharTypeTables.hpp DGXMLScanner.hpp 
	ElemStack.hpp EndOfEntityException.hpp IGXMLScanner.hpp 
	MemoryManagerArrayImpl.hpp MemoryManagerImpl.hpp ReaderMgr.hpp 
	SGXMLScanner.hpp ValidationContextImpl.hpp VecAttrListImpl.hpp 
	VecAttributesImpl.hpp WFXMLScanner.hpp XMLGrammarPoolImpl.hpp 
	XMLInternalErrorHandler.hpp XMLReader.hpp XMLScanner.hpp 
	XMLScannerResolver.hpp XProtoType.hpp XSObjectFactory.hpp 
	XSerializable.hpp XSerializationException.hpp 
	XSerializeEngine.hpp XTemplateSerializer.hpp 
Added Files:
	BinFileOutputStream.cpp BinMemOutputStream.cpp 
	BinMemOutputStream.hpp DGXMLScanner.cpp ElemStack.cpp 
	IGXMLScanner.cpp IGXMLScanner2.cpp Makefile.in 
	MemoryManagerArrayImpl.cpp MemoryManagerImpl.cpp ReaderMgr.cpp 
	SGXMLScanner.cpp ValidationContextImpl.cpp VecAttrListImpl.cpp 
	VecAttributesImpl.cpp WFXMLScanner.cpp XMLGrammarPoolImpl.cpp 
	XMLReader.cpp XMLScanner.cpp XMLScannerResolver.cpp 
	XProtoType.cpp XSAXMLScanner.cpp XSAXMLScanner.hpp 
	XSObjectFactory.cpp XSerializeEngine.cpp 
	XTemplateSerializer.cpp 
Log Message:
Xerces2.7 includes checkin.


CVS User: Zoltan Molnar, ISIS (zolmol)

--- NEW FILE: XMLReader.cpp ---
/*
 * Copyright 1999-2005 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * $Id: XMLReader.cpp,v 1.1 2008/02/19 20:16:27 zolmol Exp $
 */
[...1773 lines suppressed...]
                , fMemoryManager
                );
        }

        if (fNEL && fSource == Source_External)
        {
            fCurCol = 1;
            fCurLine++;
            curCh = chLF;
        }
    }
    else
    {
        fCurCol++;
    }

    return;
}

XERCES_CPP_NAMESPACE_END

--- NEW FILE: VecAttributesImpl.cpp ---
/*
 * Copyright 1999-2001,2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * $Id: VecAttributesImpl.cpp,v 1.1 2008/02/19 20:16:27 zolmol Exp $
 */


// ---------------------------------------------------------------------------
//  Includes
// ---------------------------------------------------------------------------
#include <xercesc/util/Janitor.hpp>
#include <xercesc/internal/VecAttributesImpl.hpp>

XERCES_CPP_NAMESPACE_BEGIN

// ---------------------------------------------------------------------------
//  Constructors and Destructor
// ---------------------------------------------------------------------------
VecAttributesImpl::VecAttributesImpl() :

    fAdopt(false)
    , fCount(0)
    , fVector(0)
    , fScanner(0)
{
}

VecAttributesImpl::~VecAttributesImpl()
{
    //
    //  Note that some compilers can't deal with the fact that the pointer
    //  is to a const object, so we have to cast off the const'ness here!
    //
    if (fAdopt)
        delete (RefVectorOf<XMLAttr>*)fVector;
}


// ---------------------------------------------------------------------------
//  Implementation of the attribute list interface
// ---------------------------------------------------------------------------
unsigned int VecAttributesImpl::getLength() const
{
    return fCount;
}

const XMLCh* VecAttributesImpl::getURI(const unsigned int index) const
{
    // since this func really needs to be const, like the rest, not sure how we
    // make it const and re-use the fURIBuffer member variable.  we're currently
    // creating a buffer each time you need a URI.  there has to be a better
    // way to do this...

    //XMLBuffer tempBuf;
    if (index >= fCount) {


        return 0;
     }
    //fValidator->getURIText(fVector->elementAt(index)->getURIId(), tempBuf) ;
    //return tempBuf.getRawBuffer() ;
    return fScanner->getURIText(fVector->elementAt(index)->getURIId());
}

const XMLCh* VecAttributesImpl::getLocalName(const unsigned int index) const
{
    if (index >= fCount) {
        return 0;
     }
    return fVector->elementAt(index)->getName();
}

const XMLCh* VecAttributesImpl::getQName(const unsigned int index) const
{
    if (index >= fCount) {
        return 0;
     }
    return fVector->elementAt(index)->getQName();
}

const XMLCh* VecAttributesImpl::getType(const unsigned int index) const
{
    if (index >= fCount) {
        return 0;
     }
    return XMLAttDef::getAttTypeString(fVector->elementAt(index)->getType(), fVector->getMemoryManager());
}

const XMLCh* VecAttributesImpl::getValue(const unsigned int index) const
{
    if (index >= fCount) {
        return 0;
     }
    return fVector->elementAt(index)->getValue();
}

int VecAttributesImpl::getIndex(const XMLCh* const uri, const XMLCh* const localPart ) const
{
    //
    //  Search the vector for the attribute with the given name and return
    //  its type.
    //
    XMLBuffer uriBuffer(1023, fVector->getMemoryManager()) ;
    for (unsigned int index = 0; index < fCount; index++)
    {
        const XMLAttr* curElem = fVector->elementAt(index);

        fScanner->getURIText(curElem->getURIId(), uriBuffer) ;

        if ( (XMLString::equals(curElem->getName(), localPart)) &&
             (XMLString::equals(uriBuffer.getRawBuffer(), uri)) )
            return index ;
    }
    return -1;
}

int VecAttributesImpl::getIndex(const XMLCh* const qName ) const
{
    //
    //  Search the vector for the attribute with the given name and return
    //  its type.
    //
    for (unsigned int index = 0; index < fCount; index++)
    {
        const XMLAttr* curElem = fVector->elementAt(index);

        if (XMLString::equals(curElem->getQName(), qName))
            return index ;
    }
    return -1;
}

const XMLCh* VecAttributesImpl::getType(const XMLCh* const uri, const XMLCh* const localPart ) const
{
    int retVal = getIndex(uri, localPart);
    return ((retVal < 0) ? 0 : getType(retVal));
}

const XMLCh* VecAttributesImpl::getType(const XMLCh* const qName) const
{
    int retVal = getIndex(qName);
    return ((retVal < 0) ? 0 : getType(retVal));
}

const XMLCh* VecAttributesImpl::getValue(const XMLCh* const uri, const XMLCh* const localPart ) const
{
    int retVal = getIndex(uri, localPart);
    return ((retVal < 0) ? 0 : getValue(retVal));
}

const XMLCh* VecAttributesImpl::getValue(const XMLCh* const qName) const
{
    int retVal = getIndex(qName);
    return ((retVal < 0) ? 0 : getValue(retVal));
}

// ---------------------------------------------------------------------------
//  Setter methods
// ---------------------------------------------------------------------------
void VecAttributesImpl::setVector(const   RefVectorOf<XMLAttr>* const srcVec
                                , const unsigned int                count
                                , const XMLScanner * const        scanner
                                , const bool                        adopt)
{
    //
    //  Delete the previous vector (if any) if we are adopting. Note that some
    //  compilers can't deal with the fact that the pointer is to a const
    //  object, so we have to cast off the const'ness here!
    //
    if (fAdopt)
        delete (RefVectorOf<XMLAttr>*)fVector;

    fAdopt = adopt;
    fCount = count;
    fVector = srcVec;
    fScanner = scanner ;
}

XERCES_CPP_NAMESPACE_END


--- NEW FILE: Makefile.in ---


--- NEW FILE: XSObjectFactory.cpp ---



--- NEW FILE: MemoryManagerArrayImpl.cpp ---



--- NEW FILE: ElemStack.cpp ---

--- NEW FILE: XTemplateSerializer.cpp ---




--- NEW FILE: XMLGrammarPoolImpl.cpp ---





--- NEW FILE: XSAXMLScanner.cpp ---



--- NEW FILE: VecAttrListImpl.cpp ---


--- NEW FILE: XMLScannerResolver.cpp ---


--- NEW FILE: WFXMLScanner.cpp ---

--- NEW FILE: ReaderMgr.cpp ---

--- NEW FILE: BinFileOutputStream.cpp ---

--- NEW FILE: DGXMLScanner.cpp ---

--- NEW FILE: XSAXMLScanner.hpp ---


--- NEW FILE: SGXMLScanner.cpp ---

--- NEW FILE: BinMemOutputStream.hpp ---




--- NEW FILE: ValidationContextImpl.cpp ---

--- NEW FILE: MemoryManagerImpl.cpp ---

--- NEW FILE: XProtoType.cpp ---

--- NEW FILE: XSerializeEngine.cpp ---

--- NEW FILE: BinMemOutputStream.cpp ---

--- NEW FILE: IGXMLScanner.cpp ---



--- NEW FILE: IGXMLScanner2.cpp ---

--- NEW FILE: XMLScanner.cpp ---





More information about the GME-commit mailing list