Verovio
Source code documentation
toolkitdef.h
1 // Name: toolkitdef.h
3 // Author: Laurent Pugin
4 // Created: 2022
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_TOOLKITDEF_H__
9 #define __VRV_TOOLKITDEF_H__
10 
11 namespace vrv {
12 
13 enum FileFormat {
14  UNKNOWN = 0,
15  AUTO,
16  MEI,
17  HUMDRUM,
18  HUMMEI,
19  HUMMIDI,
20  PAE,
21  ABC,
22  CMME,
23  DARMS,
24  VOLPIANO,
25  MUSICXML,
26  MUSICXMLHUM,
27  MEIHUM,
28  MUSEDATAHUM,
29  ESAC,
30  MIDI,
31  TIMEMAP,
32  EXPANSIONMAP
33 };
34 
35 enum { LOG_OFF = 0, LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_DEBUG };
36 
37 typedef int LogLevel;
38 
43 //----------------------------------------------------------------------------
44 // Function implemented in resources.cpp
45 //----------------------------------------------------------------------------
46 
47 void SetDefaultResourcePath(const std::string &path);
48 
49 //----------------------------------------------------------------------------
50 // Function implemented in vrv.cpp
51 //----------------------------------------------------------------------------
52 
53 void EnableLog(LogLevel level);
54 void EnableLogToBuffer(bool value);
55 
56 } // namespace vrv
57 
58 #endif // __VRV_TOOLKITDEF_H__