Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:09

0001 /*
0002  * Copyright 1999-2002,2004 The Apache Software Foundation.
0003  * 
0004  * Licensed under the Apache License, Version 2.0 (the "License");
0005  * you may not use this file except in compliance with the License.
0006  * You may obtain a copy of the License at
0007  * 
0008  *      http://www.apache.org/licenses/LICENSE-2.0
0009  * 
0010  * Unless required by applicable law or agreed to in writing, software
0011  * distributed under the License is distributed on an "AS IS" BASIS,
0012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013  * See the License for the specific language governing permissions and
0014  * limitations under the License.
0015  */
0016 
0017 /*
0018  * $Id$
0019  */
0020 
0021 #include "CondTools/Hcal/interface/StreamOutFormatTarget.h"
0022 #include <cstdio>
0023 
0024 XERCES_CPP_NAMESPACE_BEGIN
0025 
0026 StreamOutFormatTarget::StreamOutFormatTarget(std::ostream& fStream) { mStream = &fStream; }
0027 
0028 StreamOutFormatTarget::~StreamOutFormatTarget() {}
0029 
0030 void StreamOutFormatTarget::flush() { mStream->flush(); }
0031 
0032 void StreamOutFormatTarget::writeChars(const XMLByte* const toWrite, const XMLSize_t count, XMLFormatter* const) {
0033   mStream->write((const char*)toWrite, sizeof(XMLByte) * count);
0034   mStream->flush();
0035 }
0036 
0037 XERCES_CPP_NAMESPACE_END