projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make crossfade convert-to-full and activate/deactivate work across edit groups (...
[ardour.git]
/
libs
/
ardour
/
ardour
/
session_directory.h
diff --git
a/libs/ardour/ardour/session_directory.h
b/libs/ardour/ardour/session_directory.h
index 06fa52a53bc86cbd38ad26d7ac169b6814336bab..1972aa40395f54eb01786c26a9a4032f0283ccb2 100644
(file)
--- a/
libs/ardour/ardour/session_directory.h
+++ b/
libs/ardour/ardour/session_directory.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2007 Tim Mayberry
+ Copyright (C) 2007 Tim Mayberry
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-22,14
+22,10
@@
#include <string>
#include <vector>
#include <string>
#include <vector>
-#include
<pbd/filesystem.h>
+#include
"pbd/filesystem.h"
namespace ARDOUR {
namespace ARDOUR {
-using std::string;
-using std::vector;
-using PBD::sys::path;
-
class SessionDirectory
{
public:
class SessionDirectory
{
public:
@@
-37,15
+33,20
@@
public:
/**
* @param session_path An absolute path to a session directory.
*/
/**
* @param session_path An absolute path to a session directory.
*/
- SessionDirectory (const path& session_path);
+ SessionDirectory (const PBD::sys::path& session_path);
+
+ /**
+ * Change the root path of this SessionDirectory object
+ */
+ SessionDirectory& operator= (const std::string& path);
/**
* @return the absolute path to the root directory of the session
*/
/**
* @return the absolute path to the root directory of the session
*/
- const path root_path() const { return m_root_path; }
+ const
PBD::sys::
path root_path() const { return m_root_path; }
/**
/**
- * @return the absolute path to the directory in which
+ * @return the absolute path to the directory in which
* the session stores audio files.
*
* If the session is an older session with an existing
* the session stores audio files.
*
* If the session is an older session with an existing
@@
-53,43
+54,43
@@
public:
* directory otherwise it will return the new location
* of root_path()/interchange/session_name/audiofiles
*/
* directory otherwise it will return the new location
* of root_path()/interchange/session_name/audiofiles
*/
- const path sound_path () const;
-
+ const
PBD::sys::
path sound_path () const;
+
/**
/**
- * @return the absolute path to the directory in which
+ * @return the absolute path to the directory in which
* the session stores MIDI files, ie
* root_path()/interchange/session_name/midifiles
*/
* the session stores MIDI files, ie
* root_path()/interchange/session_name/midifiles
*/
- const path midi_path () const;
+ const
PBD::sys::
path midi_path () const;
/**
/**
- * @return The absolute path to the directory in which all
- * peak files are stored for a session.
+ * @return the absolute path to the directory in which
+ * the session stores MIDNAM patch files, ie
+ * root_path()/interchange/session_name/patchfiles
*/
*/
- const
path peak
_path () const;
+ const
PBD::sys::path midi_patch
_path () const;
/**
/**
- * @return The absolute path to the directory that audio
- * files are moved to when they are no longer part of the
- * session.
+ * @return The absolute path to the directory in which all
+ * peak files are stored for a session.
*/
*/
- const
path dead_sound
_path () const;
-
+ const
PBD::sys::path peak
_path () const;
+
/**
/**
- * @return The absolute path to the directory that
midi
+ * @return The absolute path to the directory that
source
* files are moved to when they are no longer part of the
* session.
*/
* files are moved to when they are no longer part of the
* session.
*/
- const
path dead_midi
_path () const;
+ const
PBD::sys::path dead
_path () const;
/**
* @return The absolute path to the directory that audio
* files are created in by default when exporting.
*/
/**
* @return The absolute path to the directory that audio
* files are created in by default when exporting.
*/
- const path export_path () const;
+ const
PBD::sys::
path export_path () const;
/**
/**
- * @return true if session directory and all the required
+ * @return true if session directory and all the required
* subdirectories exist.
*/
bool is_valid () const;
* subdirectories exist.
*/
bool is_valid () const;
@@
-107,21
+108,28
@@
public:
*/
bool create ();
*/
bool create ();
-protected:
+ /**
+ * @return The path to the directory under which source directories
+ * are created for different source types.
+ * i.e root_path()/interchange/session_name
+ */
+ const PBD::sys::path sources_root() const;
+
+private:
/**
* @return The path to the old style sound directory.
* It isn't created by create().
*/
/**
* @return The path to the old style sound directory.
* It isn't created by create().
*/
- const path old_sound_path () const;
+ const
PBD::sys::
path old_sound_path () const;
/**
* @return a vector containing the fullpath of all subdirectories.
*/
/**
* @return a vector containing the fullpath of all subdirectories.
*/
- const vector<PBD::sys::path> sub_directories () const;
+ const
std::
vector<PBD::sys::path> sub_directories () const;
/// The path to the root of the session directory.
/// The path to the root of the session directory.
-
const
path m_root_path;
+
PBD::sys::
path m_root_path;
};
} // namespace ARDOUR
};
} // namespace ARDOUR