ardour
session_directory.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2007 Tim Mayberry
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
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 */
18 
19 #ifndef __ardour_session_directory_h__
20 #define __ardour_session_directory_h__
21 
22 #include <string>
23 #include <vector>
24 
26 
27 namespace ARDOUR {
28 
30 {
31 public:
32 
36  SessionDirectory (const std::string& session_path);
37 
41  SessionDirectory& operator= (const std::string& path);
42 
46  const std::string root_path() const { return m_root_path; }
47 
57  const std::string sound_path () const;
58 
68  const std::string sound_path_2X () const;
69 
75  const std::string midi_path () const;
76 
82  const std::string midi_patch_path () const;
83 
88  const std::string peak_path () const;
89 
94  const std::string video_path () const;
95 
101  const std::string dead_path () const;
102 
107  const std::string export_path () const;
108 
113  bool is_valid () const;
114 
123  bool create ();
124 
130  const std::string sources_root() const;
131 
137  const std::string sources_root_2X() const;
138 
139 private:
140 
145  const std::string old_sound_path () const;
146 
150  const std::vector<std::string> sub_directories () const;
151 
153  std::string m_root_path;
154 };
155 
156 } // namespace ARDOUR
157 
158 #endif
const std::string root_path() const
std::string m_root_path
The path to the root of the session directory.
Definition: amp.h:29
#define LIBARDOUR_API