KVIrc  4.9.2
DeveloperAPIs
Macros | Functions | Variables
KviKvsParser.cpp File Reference
#include "KviKvsParser.h"
#include "KviKvsTreeNode.h"
#include "KviKvsReport.h"
#include "KviKvsKernel.h"
#include "KviKvsScript.h"
#include "KviKvsParserMacros.h"
#include "KviLocale.h"
#include "KviOptions.h"

Macros

#define _REG_CNTRL_CMD(__cntrlCmdName, __parsingRoutine)
 
#define LITERAL_PARAM_PARSING_FUNCTION_BEGIN(__funcname)
 
#define LITERAL_PARAM_PARSING_FUNCTION_END_WITH_EXPECTED_TERMINATOR
 
#define LITERAL_PARAM_PARSING_FUNCTION_GENERIC_END
 
#define LITERAL_PARAM_PARSING_FUNCTION_WARN_NESTED_TERMINATOR
 

Functions

 Q_UNUSED (pStart)
 
 Q_UNUSED (iNestedTerminators)
 

Variables

case __pad0__
 
 __pad1__
 
case __pad2__
 
 case
 

Macro Definition Documentation

#define _REG_CNTRL_CMD (   __cntrlCmdName,
  __parsingRoutine 
)
Value:
{ \
r->proc = KVI_PTR2MEMBER(KviKvsParser::__parsingRoutine); \
pKern->registerSpecialCommandParsingRoutine(QString(__cntrlCmdName), r); \
}
#define KVI_PTR2MEMBER(__x)
Definition: kvi_settings.h:183
struct _KviKvsSpecialCommandParsingRoutine KviKvsSpecialCommandParsingRoutine
#define r
Definition: detector.cpp:82

Referenced by KviKvsParser::init().

#define LITERAL_PARAM_PARSING_FUNCTION_BEGIN (   __funcname)
Value:
KviKvsTreeNodeConstantData * KviKvsParser::__funcname() \
{ \
QString szValue; \
\
const QChar * pStart = KVSP_curCharPointer; \
const QChar * pBegin = KVSP_curCharPointer; \
int iLen = 0; \
int iNestedTerminators = 0; \
\
for(;;) \
{ \
{
#define KVSP_curCharUnicode
Definition: KviKvsParserMacros.h:32
Definition: KviKvsTreeNodeConstantData.h:31
#define KVSP_curCharPointer
Definition: KviKvsParserMacros.h:33
#define LITERAL_PARAM_PARSING_FUNCTION_END_WITH_EXPECTED_TERMINATOR
Value:
if(iNestedTerminators > 0) \
{ \
warning(KVSP_curCharPointer, __tr2qs_ctx("Skipping nested terminator character %q", "kvs"), KVSP_curCharPointer); \
iNestedTerminators--; \
iLen++; \
} \
else \
{ \
if(iLen > 0) \
szValue.append(QString(pBegin, iLen)); \
{ \
bool bOk; \
kvs_int_t iVal = szValue.toLong(&bOk); \
if(bOk) \
return new KviKvsTreeNodeConstantData(pBegin, new KviKvsVariant(iVal)); \
kvs_real_t dVal = szValue.toDouble(&bOk); \
if(bOk) \
return new KviKvsTreeNodeConstantData(pBegin, new KviKvsVariant(dVal)); \
} \
return new KviKvsTreeNodeConstantData(pBegin, new KviKvsVariant(szValue)); \
} \
break;
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
#define _OUTPUT_MUTE
Definition: KviOptions.h:675
if(m_pFile) delete m_pFile
audacious __tr2qs_ctx("An interface for the UNIX Audacious media player.\n""Download it from http://audacious-media-player.org\n","mediaplayer")) static const char *xmms_lib_names[]
Definition: KviKvsTreeNodeConstantData.h:31
#define KVSP_skipChar
Definition: KviKvsParserMacros.h:27
void warning(QString fmt,...)
Definition: KviMessageBox.cpp:41
double kvs_real_t
Definition: KviKvsTypes.h:35
#define KVSP_curCharPointer
Definition: KviKvsParserMacros.h:33
kvi_i64_t kvs_int_t
Definition: KviKvsTypes.h:33
#define LITERAL_PARAM_PARSING_FUNCTION_GENERIC_END
#define LITERAL_PARAM_PARSING_FUNCTION_WARN_NESTED_TERMINATOR
Value:
warning(KVSP_curCharPointer, __tr2qs_ctx("Nested character %q corresponding to expected terminator, this might confuse me a bit: it is a good idea to enclose it in quotes", "kvs"), KVSP_curCharPointer); \
iNestedTerminators++; \
iLen++; \
break;
#define _OUTPUT_MUTE
Definition: KviOptions.h:675
audacious __tr2qs_ctx("An interface for the UNIX Audacious media player.\n""Download it from http://audacious-media-player.org\n","mediaplayer")) static const char *xmms_lib_names[]
#define KVSP_skipChar
Definition: KviKvsParserMacros.h:27
void warning(QString fmt,...)
Definition: KviMessageBox.cpp:41
#define KVSP_curCharPointer
Definition: KviKvsParserMacros.h:33

Function Documentation

Q_UNUSED ( pStart  )
Q_UNUSED ( iNestedTerminators  )

Variable Documentation

case __pad0__
__pad1__
case __pad2__
case
Initial value:
{':
LITERAL_PARAM_PARSING_FUNCTION_WARN_NESTED_TERMINATOR
case '}':
LITERAL_PARAM_PARSING_FUNCTION_END_WITH_EXPECTED_TERMINATOR
case 0:
case '$':
case '%':
case '@':
case '\r':
case '\n':
case '"':
case '\t':
case ' ':
LITERAL_PARAM_PARSING_FUNCTION_GENERIC_END
Q_UNUSED(pStart)
#define n
Definition: detector.cpp:78
#define r
Definition: detector.cpp:82