/[svn]/linuxsampler/trunk/src/db/InstrumentsDb.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/db/InstrumentsDb.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3090 by persson, Mon Jun 1 18:50:06 2009 UTC revision 3091 by schoenebeck, Mon Jan 16 15:01:21 2017 UTC
# Line 24  Line 24 
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"
# Line 124  namespace LinuxSampler { Line 128  namespace LinuxSampler {
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.
# Line 861  namespace LinuxSampler { Line 865  namespace LinuxSampler {
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.
# Line 921  namespace LinuxSampler { Line 927  namespace LinuxSampler {
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);

Legend:
Removed from v.3090  
changed lines
  Added in v.3091

  ViewVC Help
Powered by ViewVC