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

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

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

revision 3091 by schoenebeck, Mon Jan 16 15:01:21 2017 UTC revision 3092 by schoenebeck, Mon Jan 16 22:02:36 2017 UTC
# Line 33  Line 33 
33  #include <sqlite3.h>  #include <sqlite3.h>
34    
35  #include "../common/File.h"  #include "../common/File.h"
36    #include "../common/optional.h"
37    
38  namespace LinuxSampler {  namespace LinuxSampler {
39    
# Line 415  namespace LinuxSampler { Line 416  namespace LinuxSampler {
416          private:          private:
417              int FileCount;              int FileCount;
418      };      };
419                
420        struct InstrumentInfo {
421            String instrumentName;
422            String product;
423            String artists;
424            String keywords;
425            String comments;
426            bool   isDrum;
427    
428            InstrumentInfo() : isDrum(false) {}
429        };
430    
431        class InstrumentFileInfo {
432        public:
433            virtual ~InstrumentFileInfo() {}
434            virtual optional<InstrumentInfo> getInstrumentInfo(int index, ScanProgress* pProgress) = 0;
435            virtual String formatName() = 0;
436            virtual String formatVersion() = 0;
437    
438            static InstrumentFileInfo* getFileInfoFor(String filename);
439            static bool isSupportedFile(String filename);
440    
441        protected:
442            InstrumentFileInfo(String filename) : m_fileName(filename) {}
443    
444            String m_fileName;
445        };
446    
447  } // namespace LinuxSampler  } // namespace LinuxSampler
448    
449  #endif // __LS_INSTRUMENTSDBUTILITIES_H__  #endif // __LS_INSTRUMENTSDBUTILITIES_H__

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

  ViewVC Help
Powered by ViewVC