LMMS
Loading...
Searching...
No Matches
QtXmlWrapper Class Reference

#include <QtXmlWrapper.h>

Public Member Functions

 QtXmlWrapper ()
 ~QtXmlWrapper ()
int saveXMLfile (const std::string &filename) const
int loadXMLfile (const std::string &filename)
char * getXMLdata () const
bool putXMLdata (const char *xmldata)
void addpar (const std::string &name, int val)
void addparreal (const std::string &name, float val)
void addparbool (const std::string &name, int val)
void addparstr (const std::string &name, const std::string &val)
void beginbranch (const std::string &name)
void beginbranch (const std::string &name, int id)
void endbranch ()
int enterbranch (const std::string &name)
int enterbranch (const std::string &name, int id)
void exitbranch ()
int getbranchid (int min, int max) const
int getpar (const std::string &name, int defaultpar, int min, int max) const
int getpar127 (const std::string &name, int defaultpar) const
int getparbool (const std::string &name, int defaultpar) const
void getparstr (const std::string &name, char *par, int maxstrlen) const
std::string getparstr (const std::string &name, const std::string &defaultpar) const
float getparreal (const char *name, float defaultpar) const
float getparreal (const char *name, float defaultpar, float min, float max) const
void setPadSynth (bool enabled)
bool hasPadSynth () const

Public Attributes

bool minimal

Private Member Functions

int dosavefile (const char *filename, int compression, const char *xmldata) const
char * doloadfile (const std::string &filename) const

Private Attributes

struct { 
   int   Major 
   int   Minor 
   int   Revision 
version
XmlDatad

Constructor & Destructor Documentation

◆ QtXmlWrapper()

QtXmlWrapper::QtXmlWrapper ( )

◆ ~QtXmlWrapper()

QtXmlWrapper::~QtXmlWrapper ( )

Member Function Documentation

◆ addpar()

void QtXmlWrapper::addpar ( const std::string & name,
int val )

◆ addparbool()

void QtXmlWrapper::addparbool ( const std::string & name,
int val )

◆ addparreal()

void QtXmlWrapper::addparreal ( const std::string & name,
float val )

◆ addparstr()

void QtXmlWrapper::addparstr ( const std::string & name,
const std::string & val )

◆ beginbranch() [1/2]

void QtXmlWrapper::beginbranch ( const std::string & name)

◆ beginbranch() [2/2]

void QtXmlWrapper::beginbranch ( const std::string & name,
int id )

◆ doloadfile()

char * QtXmlWrapper::doloadfile ( const std::string & filename) const
private

◆ dosavefile()

int QtXmlWrapper::dosavefile ( const char * filename,
int compression,
const char * xmldata ) const
private

◆ endbranch()

void QtXmlWrapper::endbranch ( )

◆ enterbranch() [1/2]

int QtXmlWrapper::enterbranch ( const std::string & name)

◆ enterbranch() [2/2]

int QtXmlWrapper::enterbranch ( const std::string & name,
int id )

◆ exitbranch()

void QtXmlWrapper::exitbranch ( )

◆ getbranchid()

int QtXmlWrapper::getbranchid ( int min,
int max ) const

◆ getpar()

int QtXmlWrapper::getpar ( const std::string & name,
int defaultpar,
int min,
int max ) const

◆ getpar127()

int QtXmlWrapper::getpar127 ( const std::string & name,
int defaultpar ) const

◆ getparbool()

int QtXmlWrapper::getparbool ( const std::string & name,
int defaultpar ) const

◆ getparreal() [1/2]

float QtXmlWrapper::getparreal ( const char * name,
float defaultpar ) const

◆ getparreal() [2/2]

float QtXmlWrapper::getparreal ( const char * name,
float defaultpar,
float min,
float max ) const

◆ getparstr() [1/2]

void QtXmlWrapper::getparstr ( const std::string & name,
char * par,
int maxstrlen ) const

◆ getparstr() [2/2]

std::string QtXmlWrapper::getparstr ( const std::string & name,
const std::string & defaultpar ) const

◆ getXMLdata()

char * QtXmlWrapper::getXMLdata ( ) const

◆ hasPadSynth()

bool QtXmlWrapper::hasPadSynth ( ) const

Right now this has a copied implementation of setparbool, so this should be reworked as XMLwrapper evolves

◆ loadXMLfile()

int QtXmlWrapper::loadXMLfile ( const std::string & filename)

◆ putXMLdata()

bool QtXmlWrapper::putXMLdata ( const char * xmldata)

◆ saveXMLfile()

int QtXmlWrapper::saveXMLfile ( const std::string & filename) const

◆ setPadSynth()

void QtXmlWrapper::setPadSynth ( bool enabled)
Bug
this might create multiple nodes when only one is needed

Member Data Documentation

◆ d

XmlData* QtXmlWrapper::d
private

◆ Major

int QtXmlWrapper::Major

◆ minimal

bool QtXmlWrapper::minimal

false if all parameters will be stored (used only for clipboard)

◆ Minor

int QtXmlWrapper::Minor

◆ Revision

int QtXmlWrapper::Revision

◆ [struct]

struct { ... } QtXmlWrapper::version

The documentation for this class was generated from the following files: