10841af79SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 30841af79SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 40841af79SAndrew Rist * or more contributor license agreements. See the NOTICE file 50841af79SAndrew Rist * distributed with this work for additional information 60841af79SAndrew Rist * regarding copyright ownership. The ASF licenses this file 70841af79SAndrew Rist * to you under the Apache License, Version 2.0 (the 80841af79SAndrew Rist * "License"); you may not use this file except in compliance 90841af79SAndrew Rist * with the License. You may obtain a copy of the License at 100841af79SAndrew Rist * 110841af79SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 120841af79SAndrew Rist * 130841af79SAndrew Rist * Unless required by applicable law or agreed to in writing, 140841af79SAndrew Rist * software distributed under the License is distributed on an 150841af79SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 160841af79SAndrew Rist * KIND, either express or implied. See the License for the 170841af79SAndrew Rist * specific language governing permissions and limitations 180841af79SAndrew Rist * under the License. 190841af79SAndrew Rist * 200841af79SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #include <precomp.h> 23cdf0e10cSrcweir #include "easywri.hxx" 24cdf0e10cSrcweir 25cdf0e10cSrcweir 26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES 27cdf0e10cSrcweir 28cdf0e10cSrcweir 29cdf0e10cSrcweir using namespace csi::html; 30cdf0e10cSrcweir 31cdf0e10cSrcweir EasyWriter()32cdf0e10cSrcweirEasyWriter::EasyWriter() 33cdf0e10cSrcweir { 34cdf0e10cSrcweir } 35cdf0e10cSrcweir ~EasyWriter()36cdf0e10cSrcweirEasyWriter::~EasyWriter() 37cdf0e10cSrcweir { 38cdf0e10cSrcweir } 39cdf0e10cSrcweir 40cdf0e10cSrcweir void Open_OutputNode(csi::xml::Element & io_rDestination)41cdf0e10cSrcweirEasyWriter::Open_OutputNode( csi::xml::Element & io_rDestination ) 42cdf0e10cSrcweir { 43cdf0e10cSrcweir aCurDestination.push(&io_rDestination); 44cdf0e10cSrcweir } 45cdf0e10cSrcweir 46cdf0e10cSrcweir void Finish_OutputNode()47cdf0e10cSrcweirEasyWriter::Finish_OutputNode() 48cdf0e10cSrcweir { 49cdf0e10cSrcweir csv_assert( NOT aCurDestination.empty() ); 50cdf0e10cSrcweir aCurDestination.pop(); 51cdf0e10cSrcweir } 52cdf0e10cSrcweir 53cdf0e10cSrcweir csi::xml::Element & Out()54cdf0e10cSrcweirEasyWriter::Out() 55cdf0e10cSrcweir { 56*a0d53b35SJürgen Schmidt csv_assert( ! aCurDestination.empty() ); 57cdf0e10cSrcweir return *aCurDestination.top(); 58cdf0e10cSrcweir } 59cdf0e10cSrcweir 60