-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
libsonassmd.h
28 lines (23 loc) · 911 Bytes
/
libsonassmd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef LIBSONASSMD_WRAPPER_H
#define LIBSONASSMD_WRAPPER_H
#include <QString>
#include "libsonassmd/dynamic-pattern-load-cues.h"
#include "libsonassmd/sprite-mappings.h"
#include "libsonassmd/tiles.h"
#define LIBSONASSMD_WRAPPER(TYPE) \
class TYPE : public libsonassmd::TYPE \
{ \
protected: \
using libsonassmd::TYPE::fromFile; \
void fromFile(const QString &file_path, const Format format) {fromFile(file_path.toStdString(), format);} \
\
public: \
using libsonassmd::TYPE::TYPE; \
using libsonassmd::TYPE::toFile; \
TYPE(const QString &file_path, const Format format) : TYPE(file_path.toStdString(), format) {} \
void toFile(const QString &file_path, const Format format) const {toFile(file_path.toStdString(), format);} \
}
LIBSONASSMD_WRAPPER(DynamicPatternLoadCues);
LIBSONASSMD_WRAPPER(SpriteMappings);
LIBSONASSMD_WRAPPER(Tiles);
#endif // LIBSONASSMD_WRAPPER_H