2 * Copyright 2001-2007 Internet2
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file xmltooling/ElementExtensibleXMLObject.h
20 * An XMLObject that exposes arbitrary children via a mutable vector.
23 #ifndef __xmltooling_eleextxmlobj_h__
24 #define __xmltooling_eleextxmlobj_h__
26 #include <xmltooling/XMLObject.h>
27 #include <xmltooling/util/XMLObjectChildrenList.h>
29 #if defined (_MSC_VER)
30 #pragma warning( push )
31 #pragma warning( disable : 4250 4251 )
34 namespace xmltooling {
37 * An XMLObject that exposes arbitrary children via a mutable vector.
39 class XMLTOOL_API ElementExtensibleXMLObject : public virtual XMLObject
42 ElementExtensibleXMLObject() {}
45 virtual ~ElementExtensibleXMLObject() {}
48 * Gets a mutable list of child objects
50 * @return mutable list of child objects
52 virtual VectorOf(XMLObject) getUnknownXMLObjects()=0;
55 * Gets an immutable list of child objects
57 * @return immutable list of child objects
59 virtual const std::vector<XMLObject*>& getUnknownXMLObjects() const=0;
64 #if defined (_MSC_VER)
65 #pragma warning( pop )
68 #endif /* __xmltooling_eleextxmlobj_h__ */