SpectMorph
smutils.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_UTIL_HH
4 #define SPECTMORPH_UTIL_HH
5 
6 #include <string>
7 #include <rapicorn.hh>
8 
9 namespace SpectMorph
10 {
11 
12 using Rapicorn::AlignedArray;
13 
14 std::string string_printf (const char *format, ...) RAPICORN_PRINTF (1, 2);
15 std::string string_vprintf (const char *format, va_list vargs);
16 
17 std::string string_locale_printf (const char *format, ...) RAPICORN_PRINTF (1, 2);
18 
19 void sm_printf (const char *format, ...) RAPICORN_PRINTF (1, 2);
20 
21 enum InstallDir
22 {
23  INSTALL_DIR_TEMPLATES
24 };
25 
26 std::string sm_get_install_dir (InstallDir p);
27 
28 enum UserDir
29 {
30  USER_DIR_INSTRUMENTS
31 };
32 
33 std::string sm_get_user_dir (UserDir p);
34 std::string sm_get_default_plan();
35 
36 } // namespace SpectMorph
37 
38 #endif
STL namespace.
Definition: smaudio.hh:15