Ardour  9.0-pre0-582-g084a23a80d
template_utils.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2012 Tim Mayberry <mojofunk@gmail.com>
3  * Copyright (C) 2008-2015 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
5  * Copyright (C) 2009 David Robillard <d@drobilla.net>
6  * Copyright (C) 2016-2018 Robin Gareus <robin@gareus.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 
24 #ifndef TEMPLATE_UTILS_INCLUDED
25 #define TEMPLATE_UTILS_INCLUDED
26 
27 #include <string>
28 #include <vector>
29 
30 #include "ardour/utils.h"
32 
33 namespace ARDOUR {
34 
37 
40 
42  std::string name;
43  std::string path;
44  std::string description;
45  std::string modified_with;
46 
47  bool operator < (const TemplateInfo& other) const {
48  return cmp_nocase_utf8 (name, other.name) < 0;
49  }
50  };
51 
52  LIBARDOUR_API void find_route_templates (std::vector<TemplateInfo>& template_names);
53  LIBARDOUR_API void find_session_templates (std::vector<TemplateInfo>& template_names, bool read_xml = false);
54 
55  LIBARDOUR_API std::string session_template_dir_to_file (std::string const &);
56 
57 } // namespace ARDOUR
58 
59 #endif
GtkImageIconNameData name
Definition: gtkimage.h:6
#define LIBARDOUR_API
std::string user_route_template_directory()
void find_route_templates(std::vector< TemplateInfo > &template_names)
int cmp_nocase_utf8(const std::string &s1, const std::string &s2)
std::string user_template_directory()
std::string system_route_template_directory()
void find_session_templates(std::vector< TemplateInfo > &template_names, bool read_xml=false)
std::string system_template_directory()
std::string session_template_dir_to_file(std::string const &)
std::string modified_with
std::string description