stromx  0.8.0
XmlReader.h
1 /*
2  * Copyright 2011 Matthias Fuchs
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 #ifndef STROMX_RUNTIME_XMLREADER_H
18 #define STROMX_RUNTIME_XMLREADER_H
19 
20 #include <string>
21 #include <vector>
22 #include "stromx/runtime/Config.h"
23 
24 namespace stromx
25 {
26  namespace runtime
27  {
28  class AbstractFactory;
29  class FileInput;
30  class Operator;
31  class Stream;
32 
56  class STROMX_RUNTIME_API XmlReader
57  {
58  public:
72  Stream* readStream(const std::string & filepath, const AbstractFactory* factory) const;
73 
88  Stream* readStream(FileInput & input, const std::string & filename, const AbstractFactory* factory) const;
89 
106  void readParameters(const std::string & filepath, const AbstractFactory* factory,
107  const std::vector<stromx::runtime::Operator*> & operators) const;
108 
109 
125  void readParameters(FileInput & input, const std::string & filename, const AbstractFactory* factory,
126  const std::vector<stromx::runtime::Operator*> & operators) const;
127  };
128  }
129 }
130 
131 #endif // STROMX_RUNTIME_XMLREADER_H
Provides functions to initialize an input provider.
Definition: FileInput.h:27
Factory of operator and data objects.
Definition: AbstractFactory.h:32
The stromx class library.
Definition: AdjustRgbChannels.cpp:29
The core data processing pipeline of stromx.
Definition: Stream.h:45
Reader for stromx files.
Definition: XmlReader.h:56