gcc const fix, converted linefeeds
[shibboleth/cpp-xmltooling.git] / xmltooling / ElementProxy.h
1 /*
2  *  Copyright 2001-2006 Internet2
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /**
18  * @file xmltooling/ElementProxy.h
19  * 
20  * An XMLObject with an open content model 
21  */
22
23 #ifndef __xmltooling_eleproxy_h__
24 #define __xmltooling_eleproxy_h__
25
26 #include <xmltooling/XMLObject.h>
27 #include <xmltooling/util/XMLObjectChildrenList.h>
28
29 using namespace xercesc;
30
31 namespace xmltooling {
32
33     /**
34      * An XMLObject that exposes its children via mutable list.
35      */
36     class XMLTOOL_API ElementProxy : public virtual XMLObject
37     {
38     public:
39         ElementProxy() {}
40         virtual ~ElementProxy() {}
41         
42         /**
43          * Gets a mutable list of child objects
44          * 
45          * @return  mutable list of child objects
46          */
47         virtual ListOf(XMLObject) getXMLObjects()=0;
48
49         /**
50          * Gets an immutable list of child objects
51          * 
52          * @return  immutable list of child objects
53          */
54         virtual const std::list<XMLObject*>& getXMLObjects() const=0;
55     };
56     
57 };
58
59 #endif /* __xmltooling_eleproxy_h__ */