|
hydrogen 1.2.3
|
This class holds information about a soundlibrary. More...
#include <SoundLibraryInfo.h>
Public Member Functions | |
| SoundLibraryInfo () | |
| ~SoundLibraryInfo () | |
| QString | getAuthor () const |
| QString | getCategory () const |
| QString | getDrumkitName () |
| QString | getImage () const |
| H2Core::License | getImageLicense () const |
| QString | getInfo () const |
| H2Core::License | getLicense () const |
| QString | getName () const |
| QString | getPath () |
| QString | getType () const |
| QString | getUrl () const |
| bool | load (const QString &sPath) |
| Reads the content found in sPath. | |
| void | setAuthor (const QString &author) |
| void | setCategory (const QString &category) |
| void | setDrumkitName (const QString &sDrumkitName) |
| void | setImage (const QString &image) |
| void | setImageLicense (const H2Core::License &imageLicense) |
| void | setInfo (const QString &info) |
| void | setLicense (const H2Core::License &license) |
| void | setName (const QString &name) |
| void | setPath (const QString &path) |
| void | setType (const QString &type) |
| void | setUrl (const QString &url) |
| QString | toQString (const QString &sPrefix="", bool bShort=true) const override |
| Formatted string version for debugging purposes. | |
Public Member Functions inherited from Object< SoundLibraryInfo > | |
| Object () | |
| Object (const Object< SoundLibraryInfo > &other) | |
Public Member Functions inherited from Base | |
| Base () | |
| Base (const Base &other) | |
| virtual const char * | class_name () const |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. | |
Private Attributes | |
| H2Core::License | m_imageLicense |
| H2Core::License | m_license |
| QString | m_sAuthor |
| QString | m_sCategory |
| QString | m_sDrumkitName |
| Drumkit the pattern was created with. | |
| QString | m_sImage |
| QString | m_sInfo |
| QString | m_sName |
| QString | m_sPath |
| QString | m_sType |
| QString | m_sURL |
Additional Inherited Members | |
Static Public Member Functions inherited from Base | |
| static const char * | _class_name () |
| return the class name | |
| static QString | base_clock (const QString &sMsg) |
| Measures the current time and stores it in __last_clock. | |
| static QString | base_clock_in (const QString &sMsg) |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! | |
| static bool | count_active () |
| static int | getAliveObjectCount () |
| static object_map_t | getObjectMap () |
| static Logger * | logger () |
| return the logger instance | |
| static int | objects_count () |
| static void | printObjectMapDiff (object_map_t map) |
| Creates the difference between a snapshot of the object map and its current state and prints it to std::cout. | |
| static void | set_count (bool flag) |
| enable/disable class instances counting | |
| static void | write_objects_map_to (std::ostream &out, object_map_t *map=nullptr) |
| output the full objects map to a given ostream | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr | |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Protected Member Functions inherited from Object< SoundLibraryInfo > | |
| ~Object () | |
Protected Member Functions inherited from Base | |
| ~Base () | |
Static Protected Member Functions inherited from Base | |
| static void | registerClass (const char *name, const atomic_obj_cpt_t *counters) |
Static Protected Attributes inherited from Base | |
| static bool | __count = false |
| should we count class instances | |
| static timeval | __last_clock = { 0, 0 } |
| static Logger * | __logger = nullptr |
This class holds information about a soundlibrary.
This class is used to represent soundlibrary items. It contains the metadata for (songs,) pattern, and drumkits.
Definition at line 46 of file SoundLibraryInfo.h.
| SoundLibraryInfo | ( | ) |
Definition at line 31 of file SoundLibraryInfo.cpp.
| ~SoundLibraryInfo | ( | ) |
Definition at line 112 of file SoundLibraryInfo.cpp.
|
inline |
Definition at line 73 of file SoundLibraryInfo.h.
|
inline |
Definition at line 77 of file SoundLibraryInfo.h.
|
inline |
Definition at line 144 of file SoundLibraryInfo.h.
|
inline |
Definition at line 89 of file SoundLibraryInfo.h.
|
inline |
Definition at line 93 of file SoundLibraryInfo.h.
|
inline |
Definition at line 69 of file SoundLibraryInfo.h.
|
inline |
Definition at line 85 of file SoundLibraryInfo.h.
|
inline |
Definition at line 61 of file SoundLibraryInfo.h.
|
inline |
Definition at line 137 of file SoundLibraryInfo.h.
|
inline |
Definition at line 81 of file SoundLibraryInfo.h.
|
inline |
Definition at line 65 of file SoundLibraryInfo.h.
| bool load | ( | const QString & | sPath | ) |
Reads the content found in sPath.
| sPath | Path to .h2pattern XML file |
true on success Definition at line 36 of file SoundLibraryInfo.cpp.
|
inline |
Definition at line 109 of file SoundLibraryInfo.h.
|
inline |
Definition at line 117 of file SoundLibraryInfo.h.
|
inline |
Definition at line 141 of file SoundLibraryInfo.h.
|
inline |
Definition at line 125 of file SoundLibraryInfo.h.
|
inline |
Definition at line 129 of file SoundLibraryInfo.h.
|
inline |
Definition at line 105 of file SoundLibraryInfo.h.
|
inline |
Definition at line 121 of file SoundLibraryInfo.h.
|
inline |
Definition at line 97 of file SoundLibraryInfo.h.
|
inline |
Definition at line 133 of file SoundLibraryInfo.h.
|
inline |
Definition at line 113 of file SoundLibraryInfo.h.
|
inline |
Definition at line 101 of file SoundLibraryInfo.h.
|
overridevirtual |
Formatted string version for debugging purposes.
| sPrefix | String prefix which will be added in front of every new line |
| bShort | Instead of the whole content of all classes stored as members just a single unique identifier will be displayed without line breaks. |
Reimplemented from Base.
Definition at line 117 of file SoundLibraryInfo.cpp.
|
private |
Definition at line 167 of file SoundLibraryInfo.h.
|
private |
Definition at line 165 of file SoundLibraryInfo.h.
|
private |
Definition at line 162 of file SoundLibraryInfo.h.
|
private |
Definition at line 163 of file SoundLibraryInfo.h.
|
private |
Drumkit the pattern was created with.
Definition at line 171 of file SoundLibraryInfo.h.
|
private |
Definition at line 166 of file SoundLibraryInfo.h.
|
private |
Definition at line 161 of file SoundLibraryInfo.h.
|
private |
Definition at line 159 of file SoundLibraryInfo.h.
|
private |
Definition at line 168 of file SoundLibraryInfo.h.
|
private |
Definition at line 164 of file SoundLibraryInfo.h.
|
private |
Definition at line 160 of file SoundLibraryInfo.h.