deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
Utils

Utility functions and classes for various purposes. More...

Modules

 Atoms
 Atoms refer to strings which are allocated once and are stored in the atom table for the lifetime of the application.
 
 NaN Boxing
 64-bit NaN box format to represent various types.
 

Namespaces

namespace  deCONZ
 The deCONZ namespace.
 

Classes

class  UString
 String class to replace QString (work in progress). More...
 

Functions

int DECONZ_DLLSPEC deCONZ::appArgumentNumeric (const QString &arg, int defaultValue)
 Get the value of a commandline argument.
 
QString DECONZ_DLLSPEC deCONZ::appArgumentString (const QString &arg, const QString &defaultValue)
 Get the value of a commandline argument.
 
QString DECONZ_DLLSPEC deCONZ::jsonStringFromMap (const QVariantMap &map)
 
QString DECONZ_DLLSPEC deCONZ::jsonStringFromList (const QVariantList &ls)
 
QString DECONZ_DLLSPEC deCONZ::getStorageLocation (StorageLocation location)
 
bool DECONZ_DLLSPEC deCONZ::isVirtualMachine ()
 
const char * U_utf8_codepoint (const char *text, unsigned *codepoint)
 Convert utf-8 to unicode code point.
 

Detailed Description

Utility functions and classes for various purposes.

Utility functions and classes.

The module is work in progress and meant to replace all platform specific and Qt based functionality.

Function Documentation

◆ appArgumentNumeric()

int deCONZ::appArgumentNumeric ( const QString &  arg,
int  defaultValue 
)

Get the value of a commandline argument.

Parameters
argthe commandline argument
defaultValue
Returns
number found or default value

◆ appArgumentString()

QString DECONZ_DLLSPEC deCONZ::appArgumentString ( const QString &  arg,
const QString &  defaultValue 
)

Get the value of a commandline argument.

Parameters
argthe commandline argument
defaultValue
Returns
number found or default value

◆ U_utf8_codepoint()

const char * U_utf8_codepoint ( const char *  text,
unsigned *  codepoint 
)

Convert utf-8 to unicode code point.

Returns pointer to remainder of text. 'codepoint' is a valid codepoint or set to U_INVALID_UNICODE_CODEPOINT for invalid utf8.