Gaia
cyclopsproxy.h
1 /*
2  * Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
3  *
4  * This file is part of Gaia
5  *
6  * Gaia is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License as published by the Free
8  * Software Foundation (FSF), either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the Affero GNU General Public License
17  * version 3 along with this program. If not, see http://www.gnu.org/licenses/
18  */
19 
20 #ifndef GAIA_CYCLOPSPROXY_H
21 #define GAIA_CYCLOPSPROXY_H
22 
23 #include "yamlrpcserver.h"
24 #include "yamlcpp.h"
25 #include "cyclops.h"
26 
27 
28 gaia2::yaml::Node toYaml(const CyclopsResults& results);
29 
30 
31 class CyclopsProxy : public YamlProxy {
32  public:
33 
39 
40 
46 
47  protected:
48  Cyclops* _cyclops;
49 };
50 
51 
52 #endif // GAIA_CYCLOPSPROXY_H
gaia2::yaml::Node process(const gaia2::yaml::Mapping &query)
Perform the given function call on the wrapped Cyclops instance and return the result as a seriealize...
Definition: cyclopsproxy.cpp:59
Definition: cyclops.h:47
CyclopsProxy(Cyclops *cyclops)
Create a CyclopsProxy instance that can translate a Yaml-RPC call to an actual method call on a Cyclo...
Definition: cyclopsproxy.cpp:53
Definition: yamlrpcserver.h:31
Definition: cyclops.h:30
Definition: cyclops.py:1
Definition: cyclopsproxy.h:31
Definition: yamlcpp.h:77