/[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 1781 by iliev, Mon Sep 29 18:21:21 2008 UTC revision 1782 by iliev, Tue Sep 30 02:16:41 2008 UTC
# Line 839  namespace LinuxSampler { Line 839  namespace LinuxSampler {
839              void BindIntParam(sqlite3_stmt* pStmt, int Index, int Param);              void BindIntParam(sqlite3_stmt* pStmt, int Index, int Param);
840    
841              /**              /**
842               * Checks whether an instrument with the specified name already               * Checks whether an instrument or directory with the specified name
843               * exists in the specified directory and if so a new unique name               * already exists in the specified directory and if so a new unique name
844               * is returnded. The new name is generated by adding the suffix               * is returnded. The new name is generated by adding the suffix
845               * [<nr>] to the end of the name , where <nr> is a number between               * [<nr>] to the end of the name, where <nr> is a number between
846               * 2 and 1000.               * 2 and 1000.
847               * throws Exception if cannot find an unique name. This is done               * throws Exception if cannot find an unique name. This is done
848               * because it is highly unlikely that this can happen, so it is               * because it is highly unlikely that this can happen, so it is
849               * supposed that this is due to a bug or an infinite loop.               * supposed that this is due to a bug or an infinite loop.
850               */               */
851              String GetUniqueInstrumentName(int DirId, String Name);              String GetUniqueName(int DirId, String Name);
852    
853                /**
854                 * Creates a new directory in the specified existing
855                 * instruments database directory. The directory name is
856                 * the base name of the specified file system path, if there is
857                 * no instrument in DbDir directory with that name. Otherwise,
858                 * a directory with unique name is created.
859                 * @returns The absolute path name of the newly created
860                 * instruments database directory.
861                 */
862                String PrepareSubdirectory(String DbDir, String FsPath);
863    
864                /**
865                 * Adds the specified node to the specified database directory path.
866                 * @returns The newly created instruments database path.
867                 */
868                static String AppendNode(String DbDir, String Node);
869    
870              /**              /**
871               * All '\0' chars in the string are replaced with '/'.               * All '\0' chars in the string are replaced with '/'.

Legend:
Removed from v.1781  
changed lines
  Added in v.1782

  ViewVC Help
Powered by ViewVC