|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #ifndef ChildNode_HEADER_GUARD_ |
|
18 #define ChildNode_HEADER_GUARD_ |
|
19 |
|
20 /* |
|
21 * Licensed to the Apache Software Foundation (ASF) under one or more |
|
22 * contributor license agreements. See the NOTICE file distributed with |
|
23 * this work for additional information regarding copyright ownership. |
|
24 * The ASF licenses this file to You under the Apache License, Version 2.0 |
|
25 * (the "License"); you may not use this file except in compliance with |
|
26 * the License. You may obtain a copy of the License at |
|
27 * |
|
28 * http://www.apache.org/licenses/LICENSE-2.0 |
|
29 * |
|
30 * Unless required by applicable law or agreed to in writing, software |
|
31 * distributed under the License is distributed on an "AS IS" BASIS, |
|
32 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
33 * See the License for the specific language governing permissions and |
|
34 * limitations under the License. |
|
35 */ |
|
36 |
|
37 /* |
|
38 * $Id: ChildNode.hpp 568078 2007-08-21 11:43:25Z amassari $ |
|
39 */ |
|
40 |
|
41 // |
|
42 // This file is part of the internal implementation of the C++ XML DOM. |
|
43 // It should NOT be included or used directly by application programs. |
|
44 // |
|
45 // Applications should include the file <xercesc/dom/deprecated/DOM.hpp> for the entire |
|
46 // DOM API, or DOM_*.hpp for individual DOM classes, where the class |
|
47 // name is substituded for the *. |
|
48 // |
|
49 |
|
50 /** |
|
51 * ChildNode adds to NodeImpl the capability of being a child, this is having |
|
52 * siblings. |
|
53 **/ |
|
54 |
|
55 #include "NodeImpl.hpp" |
|
56 |
|
57 XERCES_CPP_NAMESPACE_BEGIN |
|
58 |
|
59 |
|
60 class DEPRECATED_DOM_EXPORT ChildNode: public NodeImpl { |
|
61 public: |
|
62 ChildNode *previousSibling; |
|
63 ChildNode *nextSibling; |
|
64 |
|
65 public: |
|
66 ChildNode(DocumentImpl *ownerDocument); |
|
67 ChildNode(const ChildNode &other); |
|
68 virtual ~ChildNode(); |
|
69 |
|
70 virtual NodeImpl * getNextSibling(); |
|
71 virtual NodeImpl * getParentNode(); |
|
72 virtual NodeImpl* getPreviousSibling(); |
|
73 }; |
|
74 |
|
75 |
|
76 XERCES_CPP_NAMESPACE_END |
|
77 |
|
78 #endif |