00001 /*00002 * The Software License00003 * =================================================================================00004 * Copyright (c) 2003-.The Terimber Corporation. All rights reserved.00005 * =================================================================================00006 * Redistributions of source code must retain the above copyright notice, 00007 * this list of conditions and the following disclaimer.00008 * Redistributions in binary form must reproduce the above copyright notice, 00009 * this list of conditions and the following disclaimer in the documentation 00010 * and/or other materials provided with the distribution.00011 * The end-user documentation included with the redistribution, if any, 00012 * must include the following acknowledgment:00013 * "This product includes software developed by the Terimber Corporation."00014 * =================================================================================00015 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, 00016 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 00017 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 00018 * IN NO EVENT SHALL THE TERIMBER CORPORATION OR ITS CONTRIBUTORS BE LIABLE FOR 00019 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00020 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00021 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 00022 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT00023 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE00024 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.00025 * ================================================================================00026 */00027
00028 #ifndef _terimber_xmlimpl_hpp_00029 #define _terimber_xmlimpl_hpp_00030
00031 #include "xml/xmlimpl.h"00032
00033 BEGIN_TERIMBER_NAMESPACE00034 #pragma pack(4)00035
00036 inline00037 xmlNodeType00038xml_designer_impl::get_cur_type() const 00039 {
00040 return_cur_node->_decl->get_type();
00041 }
00042
00043 inline00044 bool00045xml_designer_impl::is_attribute() const 00046 {
00047 switch (get_cur_type())
00048 {
00049 caseATTRIBUTE_NODE:
00050 returntrue;
00051 default:
00052 returnfalse;
00053 }
00054 }
00055
00056 inline00057 bool00058xml_designer_impl::is_element() const 00059 {
00060 switch (get_cur_type())
00061 {
00062 caseELEMENT_NODE:
00063 returntrue;
00064 default:
00065 returnfalse;
00066 }
00067 }
00068
00069 inline00070 bool00071xml_designer_impl::is_container() const 00072 {
00073 switch (get_cur_type())
00074 {
00075 caseELEMENT_NODE:
00076 caseDOCUMENT_NODE:
00077 returntrue;
00078 default:
00079 returnfalse;
00080 }
00081 }
00082
00083
00084 #pragma pack()00085 END_TERIMBER_NAMESPACE00086
00087 #endif // _terimber_xmlimpl_hpp_00088
00089