scaffold  1.0.0
Generates files and directories based on templates and user input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
scaffold_global.h File Reference

Contains definitions for scaffold library. More...

#include <QtGlobal>
#include <QMap>
#include <QStringList>
#include <scaffold/scaffold_config.h>

Go to the source code of this file.

Macros

#define SCAFFOLDSHARED_EXPORT   Q_DECL_IMPORT
 let the methods take import form in clients
 
#define SCAFFOLD_NAME   "scaffold"
 name of this product
 
#define ADD_PTR_INT(p, i)   ( ((char*)p) + i )
 simple pointer arithmetic is tricky in c++
 
#define xstr(s)   str(s)
 
#define str(s)   #s
 
#define foo   4
 
#define _tr(txt)   QObject::tr( txt )
 generic way of creating translatable strings
 
#define _fileError(txt)   Scaffold::fileError( txt )
 
#define _fileError_tr(txt)   _fileError( _tr ( txt ) )
 
#define _fileError_tr1(txt, arg1)   _fileError( _tr ( txt ).arg( arg1 ) )
 
#define _fileError_tr2(txt, arg1, arg2)   _fileError( _tr ( txt ).arg( arg1 ).arg( arg2 ) )
 
#define _fileError_tr3(txt, arg1, arg2, arg3)   _fileError( _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )
 
#define _error(txt)   Scaffold::error( txt )
 
#define _error_tr(txt)   _error( _tr ( txt ) )
 
#define _error_tr1(txt, arg1)   _error( _tr ( txt ).arg( arg1 ) )
 
#define _error_tr2(txt, arg1, arg2)   _error( _tr ( txt ).arg( arg1 ).arg( arg2 ) )
 
#define _error_tr3(txt, arg1, arg2, arg3)   _error( _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )
 
#define _log(ty, txt)   Scaffold::log( Scaffold::LOG_ ## ty, txt )
 
#define _log_tr(ty, txt)   _log( ty, _tr ( txt ) )
 
#define _log_tr1(ty, txt, arg1)   _log( ty, _tr ( txt ).arg( arg1 ) )
 
#define _log_tr2(ty, txt, arg1, arg2)   _log( ty, _tr ( txt ).arg( arg1 ).arg( arg2 ) )
 
#define _log_tr3(ty, txt, arg1, arg2, arg3)   _log( ty, _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )
 

Detailed Description

Contains definitions for scaffold library.

Date
November 2012
Author
TNick

Macro Definition Documentation

#define _error (   txt)    Scaffold::error( txt )

error messages not related to file position

#define _error_tr (   txt)    _error( _tr ( txt ) )

error messages not related to file position

#define _error_tr1 (   txt,
  arg1 
)    _error( _tr ( txt ).arg( arg1 ) )

error messages not related to file position

#define _error_tr2 (   txt,
  arg1,
  arg2 
)    _error( _tr ( txt ).arg( arg1 ).arg( arg2 ) )

error messages not related to file position

#define _error_tr3 (   txt,
  arg1,
  arg2,
  arg3 
)    _error( _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )

error messages not related to file position

#define _fileError (   txt)    Scaffold::fileError( txt )

generic way of showing control file errors

#define _fileError_tr (   txt)    _fileError( _tr ( txt ) )

generic way of showing control file errors

#define _fileError_tr1 (   txt,
  arg1 
)    _fileError( _tr ( txt ).arg( arg1 ) )

generic way of showing control file errors

#define _fileError_tr2 (   txt,
  arg1,
  arg2 
)    _fileError( _tr ( txt ).arg( arg1 ).arg( arg2 ) )

generic way of showing control file errors

#define _fileError_tr3 (   txt,
  arg1,
  arg2,
  arg3 
)    _fileError( _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )

generic way of showing control file errors

#define _log (   ty,
  txt 
)    Scaffold::log( Scaffold::LOG_ ## ty, txt )

logging messages

#define _log_tr (   ty,
  txt 
)    _log( ty, _tr ( txt ) )

logging messages

#define _log_tr1 (   ty,
  txt,
  arg1 
)    _log( ty, _tr ( txt ).arg( arg1 ) )

logging messages

#define _log_tr2 (   ty,
  txt,
  arg1,
  arg2 
)    _log( ty, _tr ( txt ).arg( arg1 ).arg( arg2 ) )

logging messages

#define _log_tr3 (   ty,
  txt,
  arg1,
  arg2,
  arg3 
)    _log( ty, _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )

logging messages