synthclone  0.3.0
util.h File Reference
#include <QtCore/QCoreApplication>
#include <QtGui/QWidget>
#include <synthclone/sampleinputstream.h>
#include <synthclone/sampleoutputstream.h>
Include dependency graph for util.h:

Go to the source code of this file.

Namespaces

 synthclone
 

Macros

#define CONFIRM(condition, message)
 Confirms that a given condition is true, regardless of whether or not NDEBUG is set. More...
 

Functions

template<typename T >
T * synthclone::getChild (const QObject *object, const QString &name=QString())
 Finds a child object of an object. More...
 
QString synthclone::getMIDIControlString (MIDIData control)
 Gets a string representation of a MIDI control. More...
 
ControlType synthclone::getMIDIControlType (MIDIData control)
 Gets the default MIDI control type. More...
 
QString synthclone::getMIDINoteString (MIDIData note)
 Gets a string representation of a MIDI note. More...
 
QString synthclone::getSampleFilenameExtension (SampleStream::Type type)
 Gets an appropriate filename extension for a sample type. More...
 
QWidget * synthclone::loadForm (const QString &path, QWidget *parent=0)
 Loads the main widget from a QtDesigner form. More...
 

Macro Definition Documentation

#define CONFIRM (   condition,
  message 
)
Value:
if (! (condition)) { \
synthclone::_die(__FILE__, Q_FUNC_INFO, __LINE__, message); \
}

Confirms that a given condition is true, regardless of whether or not NDEBUG is set.

If the condition does not evaluate to true, then an error message is printed that includes the file, line, and function where the error occurred, along with an error message. The program is then terminated using abort().

Parameters
conditionThe condition to evaluate.
messageAn error message that describes the potential problem.