hydrogen 1.1.1
LocalFileMng Class Reference

#include <LocalFileMng.h>

Inheritance diagram for LocalFileMng:
Object

Public Member Functions

 LocalFileMng ()
 
 ~LocalFileMng ()
 
QString getDrumkitNameForPattern (const QString &patternDir)
 
- Public Member Functions inherited from Object
 ~Object ()
 destructor More...
 
 Object (const Object &obj)
 copy constructor More...
 
 Object (const char *class_name)
 constructor More...
 
const char * class_name () const
 return the class name More...
 
virtual QString toQString (const QString &sPrefix, bool bShort=true) const
 Formatted string version for debugging purposes. More...
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG. More...
 

Static Public Member Functions

static void writeXmlString (QDomNode parent, const QString &name, const QString &text)
 
static void writeXmlBool (QDomNode parent, const QString &name, bool value)
 
static QString readXmlString (QDomNode, const QString &nodeName, const QString &defaultValue, bool bCanBeEmpty=false, bool bShouldExists=true, bool tinyXmlCompatMode=false)
 
static float readXmlFloat (QDomNode, const QString &nodeName, float defaultValue, bool bCanBeEmpty=false, bool bShouldExists=true, bool tinyXmlCompatMode=false)
 
static int readXmlInt (QDomNode, const QString &nodeName, int defaultValue, bool bCanBeEmpty=false, bool bShouldExists=true, bool tinyXmlCompatMode=false)
 
static bool readXmlBool (QDomNode, const QString &nodeName, bool defaultValue, bool bShouldExists=true, bool tinyXmlCompatMode=false)
 
static void convertFromTinyXMLString (QByteArray *str)
 
static bool checkTinyXMLCompatMode (const QString &filename)
 
static QDomDocument openXmlDocument (const QString &filename)
 
- Static Public Member Functions inherited from Object
static void set_count (bool flag)
 enable/disable class instances counting More...
 
static bool count_active ()
 return true if class instances counting is enabled More...
 
static unsigned objects_count ()
 return the number of objects More...
 
static void write_objects_map_to (std::ostream &out)
 output the full objects map to a given ostream More...
 
static void write_objects_map_to_cerr ()
 output objects map to stderr More...
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation ! More...
 
static Loggerlogger ()
 return the logger instance More...
 

Static Private Member Functions

static QString processNode (QDomNode node, const QString &nodeName, bool bCanBeEmpty, bool bShouldExists)
 

Additional Inherited Members

- Static Public Attributes inherited from Object
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes. More...
 
- Static Protected Attributes inherited from Object
static Logger__logger = nullptr
 logger instance pointer More...
 

Constructor & Destructor Documentation

◆ LocalFileMng()

◆ ~LocalFileMng()

Member Function Documentation

◆ checkTinyXMLCompatMode()

bool checkTinyXMLCompatMode ( const QString &  filename)
static

◆ convertFromTinyXMLString()

void convertFromTinyXMLString ( QByteArray *  str)
static

◆ getDrumkitNameForPattern()

QString getDrumkitNameForPattern ( const QString &  patternDir)

◆ openXmlDocument()

QDomDocument openXmlDocument ( const QString &  filename)
static

◆ processNode()

QString processNode ( QDomNode  node,
const QString &  nodeName,
bool  bCanBeEmpty,
bool  bShouldExists 
)
staticprivate

◆ readXmlBool()

bool readXmlBool ( QDomNode  node,
const QString &  nodeName,
bool  defaultValue,
bool  bShouldExists = true,
bool  tinyXmlCompatMode = false 
)
static

◆ readXmlFloat()

float readXmlFloat ( QDomNode  node,
const QString &  nodeName,
float  defaultValue,
bool  bCanBeEmpty = false,
bool  bShouldExists = true,
bool  tinyXmlCompatMode = false 
)
static

◆ readXmlInt()

int readXmlInt ( QDomNode  node,
const QString &  nodeName,
int  defaultValue,
bool  bCanBeEmpty = false,
bool  bShouldExists = true,
bool  tinyXmlCompatMode = false 
)
static

◆ readXmlString()

QString readXmlString ( QDomNode  node,
const QString &  nodeName,
const QString &  defaultValue,
bool  bCanBeEmpty = false,
bool  bShouldExists = true,
bool  tinyXmlCompatMode = false 
)
static

◆ writeXmlBool()

void writeXmlBool ( QDomNode  parent,
const QString &  name,
bool  value 
)
static

◆ writeXmlString()

void writeXmlString ( QDomNode  parent,
const QString &  name,
const QString &  text 
)
static