24 |
#define __LS_INSTRUMENTSDB_H__ |
#define __LS_INSTRUMENTSDB_H__ |
25 |
|
|
26 |
#include <sqlite3.h> |
#include <sqlite3.h> |
27 |
#include <gig.h> |
#if AC_APPLE_UNIVERSAL_BUILD |
28 |
|
# include <libgig/gig.h> |
29 |
|
#else |
30 |
|
# include <gig.h> |
31 |
|
#endif |
32 |
#include "../common/Mutex.h" |
#include "../common/Mutex.h" |
33 |
#include "../common/WorkerThread.h" |
#include "../common/WorkerThread.h" |
34 |
#include "../EventListeners.h" |
#include "../EventListeners.h" |
128 |
|
|
129 |
/** |
/** |
130 |
* Creates an instruments database file. |
* Creates an instruments database file. |
131 |
* @param FilePath the pathname of the file to create. |
* @param FilePath optional pathname of the file to create. |
132 |
* @throws Exception If the creation of the database file failed. |
* @throws Exception If the creation of the database file failed. |
133 |
*/ |
*/ |
134 |
static void CreateInstrumentsDb(String FilePath); |
void CreateInstrumentsDb(String FilePath = ""); |
135 |
|
|
136 |
/** |
/** |
137 |
* This method is used to access the instruments database. |
* This method is used to access the instruments database. |
865 |
*/ |
*/ |
866 |
String PrepareSubdirectory(String DbDir, String FsPath); |
String PrepareSubdirectory(String DbDir, String FsPath); |
867 |
|
|
868 |
|
void EnsureDBFileExists(); |
869 |
|
|
870 |
/** |
/** |
871 |
* Adds the specified node to the specified database directory path. |
* Adds the specified node to the specified database directory path. |
872 |
* @returns The newly created instruments database path. |
* @returns The newly created instruments database path. |
927 |
*/ |
*/ |
928 |
static void CheckFileName(String File); |
static void CheckFileName(String File); |
929 |
|
|
930 |
|
static String GetDefaultDBLocation(); |
931 |
|
|
932 |
#ifndef WIN32 |
#ifndef WIN32 |
933 |
/** SQLite user function for handling regular expressions */ |
/** SQLite user function for handling regular expressions */ |
934 |
static void Regexp(sqlite3_context* pContext, int argc, sqlite3_value** ppValue); |
static void Regexp(sqlite3_context* pContext, int argc, sqlite3_value** ppValue); |