stromx  0.8.0
XmlWriter.h
1 /*
2 * Copyright 2011 Thomas Fidler
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_XMLWRITER_H
18 #define STROMX_RUNTIME_XMLWRITER_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 FileOutput;
29  class Operator;
30  class Stream;
31 
55  class STROMX_RUNTIME_API XmlWriter
56  {
57  public:
67  void writeStream(const std::string& filepath, const Stream& stream) const;
68 
80  void writeStream(FileOutput & output, const std::string & basename, const Stream& stream) const;
81 
91  void writeParameters(const std::string& filepath,
92  const std::vector<const stromx::runtime::Operator*>& operators) const;
102  void writeParameters(const std::string& filepath,
103  const std::vector<stromx::runtime::Operator*>& operators) const;
104 
114  void writeParameters(FileOutput & output, const std::string & basename,
115  const std::vector<const stromx::runtime::Operator*>& operators) const;
125  void writeParameters(FileOutput & output, const std::string & basename,
126  const std::vector<stromx::runtime::Operator*>& operators) const;
127  };
128  }
129 }
130 
131 #endif // STROMX_RUNTIME_XMLWRITER_H
The stromx class library.
Definition: AdjustRgbChannels.cpp:29
The core data processing pipeline of stromx.
Definition: Stream.h:45
Writer for stromx files.
Definition: XmlWriter.h:55
Provides functions to initialize an output provider.
Definition: FileOutput.h:27