summaryrefslogtreecommitdiff
path: root/src/drumkit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumkit.h')
-rw-r--r--src/drumkit.h45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/drumkit.h b/src/drumkit.h
index 24fce99..1ceef3e 100644
--- a/src/drumkit.h
+++ b/src/drumkit.h
@@ -24,8 +24,7 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __DRUMGIZMO_DRUMKIT_H__
-#define __DRUMGIZMO_DRUMKIT_H__
+#pragma once
#include <map>
#include <string>
@@ -35,36 +34,36 @@
#include "versionstr.h"
class DrumKitParser;
-class DrumKit {
- friend class DrumKitParser;
+class DrumKit
+{
+ friend class DrumKitParser;
+
public:
- DrumKit();
- ~DrumKit();
+ DrumKit();
+ ~DrumKit();
+
+ std::string getFile() const;
- std::string file();
+ std::string getName() const;
+ std::string getDescription() const;
- std::string name();
- std::string description();
-
- Instruments instruments;
- Channels channels;
-
- void clear();
+ Instruments instruments;
+ Channels channels;
- bool isValid();
+ void clear();
- size_t samplerate();
+ bool isValid() const;
+
+ size_t getSamplerate() const;
private:
- void *magic{nullptr};
+ void* magic{nullptr};
- std::string _file;
+ std::string _file;
- std::string _name;
- std::string _description;
+ std::string _name;
+ std::string _description;
size_t _samplerate{0};
- VersionStr _version;
+ VersionStr _version;
};
-
-#endif/*__DRUMGIZMO_DRUMKIT_H__*/