1 
2 /* Web Polygraph       http://www.web-polygraph.org/
3  * Copyright 2003-2011 The Measurement Factory
4  * Licensed under the Apache License, Version 2.0 */
5 
6 #ifndef POLYGRAPH__XML_XMLATTRS_H
7 #define POLYGRAPH__XML_XMLATTRS_H
8 
9 #include "xstd/Array.h"
10 
11 class String;
12 class XmlAttr;
13 
14 // a collection of XML nodes
15 class XmlAttrs: public Array<XmlAttr*> {
16 	public:
17 		typedef Array<XmlAttr*> Parent;
18 
19 	public:
20 		const XmlAttr *has(const String &name) const;
21 		const XmlAttr *has(const String &name, const String &value) const;
22 		const String &value(const String &name) const;
23 
24 		XmlAttrs &operator <<(const XmlAttr &a);
25 };
26 
27 #endif
28