SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XmlParser.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 Martin Hansen
3  *
4  * This file is part of SPAOP (Spatial Audio Object Positioner).
5  *
6  * SPAOP is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * SPAOP is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SPAOP. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef XMLPARSER_H_INCLUDED
21 #define XMLPARSER_H_INCLUDED
22 
23 namespace wonder {
24 
30 class XmlParser
31 {
32 public:
33 
35  virtual ~XmlParser(){}
36 
45  virtual void updateSourceFromCWonderProject(const std::string& cwProjectXml,
46  Source* source) = 0;
47 
55  virtual void updateSourceCollectionFromCWonderProject(const std::string& cwProjectXml,
56  SourceCollection& sources) = 0;
57 };
58 
59 }
60 
61 #endif // XMLPARSER_H_INCLUDED
A container class holding multiple sources (IDs 0 to maxSources-1), accessible via their sourceIDs...
Definition: SourceCollection.h:37
virtual ~XmlParser()
Destructor.
Definition: XmlParser.h:35
virtual void updateSourceCollectionFromCWonderProject(const std::string &cwProjectXml, SourceCollection &sources)=0
Sets the properties of a SourceCollection to the values given in a cWONDER project XML string...
A class for objects representing a WONDER source with all its properties.
Definition: Source.h:60
virtual void updateSourceFromCWonderProject(const std::string &cwProjectXml, Source *source)=0
Sets the properties of a Source object to the values given in a cWONDER project XML string (if the st...
An interface defining a class that sets the parameters of one or several sources from an XML formatte...
Definition: XmlParser.h:30