Ardour  8.7-14-g57a6773833
manifest.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Luciano Iam <oss@lucianoiam.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the/GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef _ardour_surface_websockets_manifest_h_
20 #define _ardour_surface_websockets_manifest_h_
21 
22 #include <string>
23 
24 namespace ArdourSurface {
25 
27 {
28 public:
29  // all ardour control surfaces implement presets using xml format
30  SurfaceManifest (std::string);
31 
32  bool valid () { return _valid; }
33 
34  std::string path () { return _path; }
35  std::string name () { return _name; }
36  std::string description () { return _description; }
37  std::string version () { return _version; }
38 
39  std::string to_json ();
40 
41  static bool exists_at_path (std::string);
42 
43 private:
44  bool _valid;
45 
46  std::string _path;
47  std::string _name;
48  std::string _description;
49  std::string _version;
50 };
51 
52 } // namespace ArdourSurface
53 
54 #endif // _ardour_surface_websockets_manifest_h_
static bool exists_at_path(std::string)