Changeset 990:4b966a296599


Ignore:
Timestamp:
08/05/08 07:02:45 (4 years ago)
Author:
niam
Branch:
libdodo
Message:

fixed docs; uncrustify

Location:
trunk
Files:
111 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/libdodo/cgiBasicExchange.h

    r975 r990  
    4646                         * @class exchange provides interface to  CGI I/O functionality 
    4747                         */ 
    48                         class exchange : virtual public cgi::exchange,  
     48                        class exchange : virtual public cgi::exchange, 
    4949                                                         virtual public io::stdio 
    5050                        { 
  • trunk/include/libdodo/cgiFastExchange.h

    r984 r990  
    127127                                private: 
    128128 
    129                                         FCGX_Request *request;                        ///< fast CGI descriptor 
     129                                        FCGX_Request *request;                                            ///< fast CGI descriptor 
    130130                        }; 
    131131                }; 
  • trunk/include/libdodo/cgiFastServer.h

    r979 r990  
    111111                                         * if limit is 0 `listen` never returns 
    112112                                         */ 
    113                                         virtual void listen(unsigned long limit=0); 
     113                                        virtual void listen(unsigned long limit = 0); 
    114114 
    115115                                        /** 
     
    122122#ifdef PTHREAD_EXT 
    123123 
    124                                         bool threading;                                     ///< true use threading 
     124                                        bool threading;                                                         ///< true use threading 
    125125 
    126                                         unsigned int threadsNum;                            ///< amount of threads 
     126                                        unsigned int threadsNum;                                                ///< amount of threads 
    127127 
    128128                                        /** 
     
    132132                                        static void *stackThread(void *data); 
    133133 
    134                                         static pthread_mutex_t acceptM;                            ///< accept request mutex 
    135                                         static pthread_mutex_t requestsM;                            ///< request conter mutex 
     134                                        static pthread_mutex_t acceptM;                                                     ///< accept request mutex 
     135                                        static pthread_mutex_t requestsM;                                                   ///< request conter mutex 
    136136 
    137137#endif 
    138138 
    139                                         static serverHandler handler;                        ///< function to be called on new request 
     139                                        static serverHandler handler;                                               ///< function to be called on new request 
    140140 
    141                                         static unsigned long limit; ///< limit of requests to serve; if 0 server forever[0 by default] 
    142                                         static unsigned long requests; ///< counter of requests 
     141                                        static unsigned long limit;                                                 ///< limit of requests to serve; if 0 server forever[0 by default] 
     142                                        static unsigned long requests;                                              ///< counter of requests 
    143143                        }; 
    144144                }; 
  • trunk/include/libdodo/cgiServer.h

    r987 r990  
    6868                        SERVER_ENVIRONMENT_CONTENTLENGTH, 
    6969                        SERVER_ENVIRONMENT_CONTENTTRANSFERENCODING, 
    70                         SERVER_ENVIRONMENT_HTTPAUTHORIZATION,               ///< authentication credentials for HTTP authentication 
     70                        SERVER_ENVIRONMENT_HTTPAUTHORIZATION,                           ///< authentication credentials for HTTP authentication 
    7171                        SERVER_ENVIRONMENT_HTTPHOST, 
    72                         SERVER_ENVIRONMENT_HTTPUSERAGENT,                   ///< the user agent string of the user agent 
    73                         SERVER_ENVIRONMENT_HTTPCOOKIE,                      ///< the user agent string of the user agent 
    74                         SERVER_ENVIRONMENT_HTTPIFMODIFIEDSINCE,             ///< allows a 304 Not Modified to be returned 
    75                         SERVER_ENVIRONMENT_HTTPDATE,                        ///< the date and time that the message was sent 
    76                         SERVER_ENVIRONMENT_HTTPACCEPT,                      ///< content-types that are acceptable by server 
    77                         SERVER_ENVIRONMENT_HTTPACCEPTLANGUAGE,              ///< acceptable languages for response 
    78                         SERVER_ENVIRONMENT_HTTPACCEPTENCODING,              ///< acceptable encodings 
    79                         SERVER_ENVIRONMENT_HTTPACCEPTCHARSET,               ///< character sets that are acceptable 
    80                         SERVER_ENVIRONMENT_HTTPACCEPTRANGES,                ///< character sets that are acceptable 
     72                        SERVER_ENVIRONMENT_HTTPUSERAGENT,                               ///< the user agent string of the user agent 
     73                        SERVER_ENVIRONMENT_HTTPCOOKIE,                                  ///< the user agent string of the user agent 
     74                        SERVER_ENVIRONMENT_HTTPIFMODIFIEDSINCE,                         ///< allows a 304 Not Modified to be returned 
     75                        SERVER_ENVIRONMENT_HTTPDATE,                                    ///< the date and time that the message was sent 
     76                        SERVER_ENVIRONMENT_HTTPACCEPT,                                  ///< content-types that are acceptable by server 
     77                        SERVER_ENVIRONMENT_HTTPACCEPTLANGUAGE,                          ///< acceptable languages for response 
     78                        SERVER_ENVIRONMENT_HTTPACCEPTENCODING,                          ///< acceptable encodings 
     79                        SERVER_ENVIRONMENT_HTTPACCEPTCHARSET,                           ///< character sets that are acceptable 
     80                        SERVER_ENVIRONMENT_HTTPACCEPTRANGES,                            ///< character sets that are acceptable 
    8181                        SERVER_ENVIRONMENT_HTTPKEEPALIVE, 
    82                         SERVER_ENVIRONMENT_HTTPCONNECTION,                  ///< what type of connection the user-agent would prefer 
     82                        SERVER_ENVIRONMENT_HTTPCONNECTION,                              ///< what type of connection the user-agent would prefer 
    8383                        SERVER_ENVIRONMENT_HTTPREFERER, 
    8484                        SERVER_ENVIRONMENT_HTTPVIA, 
     
    109109                enum serverResponseHeaderEnum 
    110110                { 
    111                         SERVER_RESPONSEHEADER_ACCEPTRANGES,                         ///< what partial content range types this server supports 
    112                         SERVER_RESPONSEHEADER_AGE,                                  ///< the age the object has been in a proxy cache in seconds 
    113                         SERVER_RESPONSEHEADER_ALLOW,                                ///< valid actions for a specified resource. To be used for a 405 Method not allowed 
    114                         SERVER_RESPONSEHEADER_CACHECONTROL,                         ///< tells all caching mechanisms from server to server whether they may cache this object 
    115                         SERVER_RESPONSEHEADER_CONTENTENCODING,                      ///< the type of encoding used on the data 
    116                         SERVER_RESPONSEHEADER_CONTENTLANGUAGE,                      ///< the language the content is in 
    117                         SERVER_RESPONSEHEADER_CONTENTLENGTH,                        ///< the length of the content in bytes 
    118                         SERVER_RESPONSEHEADER_CONTENTLOCATION,                      ///< an alternate location for the returned data 
    119                         SERVER_RESPONSEHEADER_CONTENTDISPOSITION,                   ///< an opportunity to raise a "File Download" dialog box for a known MIME type 
    120                         SERVER_RESPONSEHEADER_CONTENTMD5,                           ///< an MD5 sum of the content of the response 
    121                         SERVER_RESPONSEHEADER_CONTENTRANGE,                         ///< where in a full body message this partial message belongs 
    122                         SERVER_RESPONSEHEADER_CONTENTTYPE,                          ///< the mime type of this content 
    123                         SERVER_RESPONSEHEADER_DATE,                                 ///< the date and time that the message was sent 
    124                         SERVER_RESPONSEHEADER_LASTMODIFIED,                         ///< the last modified date for the requested object 
    125                         SERVER_RESPONSEHEADER_LOCATION,                             ///< used in redirection 
    126                         SERVER_RESPONSEHEADER_SERVER,                               ///< a name for the server 
    127                         SERVER_RESPONSEHEADER_WWWAUTHENTICATE,                      ///< auuthentification request 
    128                         SERVER_RESPONSEHEADER_XPOWEREDBY,                           ///< cgi provider 
     111                        SERVER_RESPONSEHEADER_ACCEPTRANGES,                                     ///< what partial content range types this server supports 
     112                        SERVER_RESPONSEHEADER_AGE,                                              ///< the age the object has been in a proxy cache in seconds 
     113                        SERVER_RESPONSEHEADER_ALLOW,                                            ///< valid actions for a specified resource. To be used for a 405 Method not allowed 
     114                        SERVER_RESPONSEHEADER_CACHECONTROL,                                     ///< tells all caching mechanisms from server to server whether they may cache this object 
     115                        SERVER_RESPONSEHEADER_CONTENTENCODING,                                  ///< the type of encoding used on the data 
     116                        SERVER_RESPONSEHEADER_CONTENTLANGUAGE,                                  ///< the language the content is in 
     117                        SERVER_RESPONSEHEADER_CONTENTLENGTH,                                    ///< the length of the content in bytes 
     118                        SERVER_RESPONSEHEADER_CONTENTLOCATION,                                  ///< an alternate location for the returned data 
     119                        SERVER_RESPONSEHEADER_CONTENTDISPOSITION,                               ///< an opportunity to raise a "File Download" dialog box for a known MIME type 
     120                        SERVER_RESPONSEHEADER_CONTENTMD5,                                       ///< an MD5 sum of the content of the response 
     121                        SERVER_RESPONSEHEADER_CONTENTRANGE,                                     ///< where in a full body message this partial message belongs 
     122                        SERVER_RESPONSEHEADER_CONTENTTYPE,                                      ///< the mime type of this content 
     123                        SERVER_RESPONSEHEADER_DATE,                                             ///< the date and time that the message was sent 
     124                        SERVER_RESPONSEHEADER_LASTMODIFIED,                                     ///< the last modified date for the requested object 
     125                        SERVER_RESPONSEHEADER_LOCATION,                                         ///< used in redirection 
     126                        SERVER_RESPONSEHEADER_SERVER,                                           ///< a name for the server 
     127                        SERVER_RESPONSEHEADER_WWWAUTHENTICATE,                                  ///< auuthentification request 
     128                        SERVER_RESPONSEHEADER_XPOWEREDBY,                                       ///< cgi provider 
    129129                }; 
    130130 
     
    136136                enum serverStatusCodeEnum 
    137137                { 
    138                         SERVER_STATUSCODE_CONTINUE,                                         ///< 100 
    139                         SERVER_STATUSCODE_SWITCHINGPROTOCOLS,                               ///< 101 
    140                         SERVER_STATUSCODE_OK,                                               ///< 200 
    141                         SERVER_STATUSCODE_CREATED,                                          ///< 201 
    142                         SERVER_STATUSCODE_ACCEPTED,                                         ///< 202 
    143                         SERVER_STATUSCODE_NONAUTHORITATIVE,                                 ///< 203 
    144                         SERVER_STATUSCODE_NOCONTENT,                                        ///< 204 
    145                         SERVER_STATUSCODE_RESETCONTENT,                                     ///< 205 
    146                         SERVER_STATUSCODE_PARTIALCONTENT,                                   ///< 206 
    147                         SERVER_STATUSCODE_MULTIPLECHOISES,                                  ///< 300 
    148                         SERVER_STATUSCODE_MOVEDPERMANENTLY,                                 ///< 301 
    149                         SERVER_STATUSCODE_FOUND,                                            ///< 302 
    150                         SERVER_STATUSCODE_SEEOTHER,                                         ///< 303 
    151                         SERVER_STATUSCODE_NOTMODIFIED,                                      ///< 304 
    152                         SERVER_STATUSCODE_USEPROXY,                                         ///< 305 
    153                         SERVER_STATUSCODE_TEMPORARYREDIRECT,                                ///< 307 
    154                         SERVER_STATUSCODE_BADREQUEST,                                       ///< 400 
    155                         SERVER_STATUSCODE_UNAUTHORIZED,                                     ///< 401 
    156                         SERVER_STATUSCODE_PAYMENTREQUIRED,                                  ///< 402 
    157                         SERVER_STATUSCODE_FORBIDDEN,                                        ///< 403 
    158                         SERVER_STATUSCODE_NOTFOUND,                                         ///< 404 
    159                         SERVER_STATUSCODE_METHODNOTALLOWED,                                 ///< 405 
    160                         SERVER_STATUSCODE_NOTACCEPTABLE,                                    ///< 406 
    161                         SERVER_STATUSCODE_PROXYauthenticationREQUIRED,                      ///< 407 
    162                         SERVER_STATUSCODE_REQUESTTIMEOUT,                                   ///< 408 
    163                         SERVER_STATUSCODE_CONFLICT,                                         ///< 409 
    164                         SERVER_STATUSCODE_GONE,                                             ///< 410 
    165                         SERVER_STATUSCODE_LENGTHREQUIRED,                                   ///< 411 
    166                         SERVER_STATUSCODE_PRECONDITIONFAILED,                               ///< 412 
    167                         SERVER_STATUSCODE_REQUESTENTITYTOOLARGE,                            ///< 413 
    168                         SERVER_STATUSCODE_REQUESTURITOOLONG,                                ///< 414 
    169                         SERVER_STATUSCODE_UNSUPPORTEDMEDIATYPE,                             ///< 415 
    170                         SERVER_STATUSCODE_REQUESTRANGENOTSATISFIABLE,                       ///< 416 
    171                         SERVER_STATUSCODE_EXPECTATIONFAILED,                                ///< 417 
    172                         SERVER_STATUSCODE_INTERNALSERVERERROR,                              ///< 500 
    173                         SERVER_STATUSCODE_NOTIMPLEMENTED,                                   ///< 501 
    174                         SERVER_STATUSCODE_BADGATEWAY,                                       ///< 502 
    175                         SERVER_STATUSCODE_SERVICEUNAVAILABLE,                               ///< 503 
    176                         SERVER_STATUSCODE_GATEWAYTIMEOUT,                                   ///< 504 
    177                         SERVER_STATUSCODE_HTTPVERSIONNOTSUPPORTED,                          ///< 505 
     138                        SERVER_STATUSCODE_CONTINUE,                                                     ///< 100 
     139                        SERVER_STATUSCODE_SWITCHINGPROTOCOLS,                                           ///< 101 
     140                        SERVER_STATUSCODE_OK,                                                           ///< 200 
     141                        SERVER_STATUSCODE_CREATED,                                                      ///< 201 
     142                        SERVER_STATUSCODE_ACCEPTED,                                                     ///< 202 
     143                        SERVER_STATUSCODE_NONAUTHORITATIVE,                                             ///< 203 
     144                        SERVER_STATUSCODE_NOCONTENT,                                                    ///< 204 
     145                        SERVER_STATUSCODE_RESETCONTENT,                                                 ///< 205 
     146                        SERVER_STATUSCODE_PARTIALCONTENT,                                               ///< 206 
     147                        SERVER_STATUSCODE_MULTIPLECHOISES,                                              ///< 300 
     148                        SERVER_STATUSCODE_MOVEDPERMANENTLY,                                             ///< 301 
     149                        SERVER_STATUSCODE_FOUND,                                                        ///< 302 
     150                        SERVER_STATUSCODE_SEEOTHER,                                                     ///< 303 
     151                        SERVER_STATUSCODE_NOTMODIFIED,                                                  ///< 304 
     152                        SERVER_STATUSCODE_USEPROXY,                                                     ///< 305 
     153                        SERVER_STATUSCODE_TEMPORARYREDIRECT,                                            ///< 307 
     154                        SERVER_STATUSCODE_BADREQUEST,                                                   ///< 400 
     155                        SERVER_STATUSCODE_UNAUTHORIZED,                                                 ///< 401 
     156                        SERVER_STATUSCODE_PAYMENTREQUIRED,                                              ///< 402 
     157                        SERVER_STATUSCODE_FORBIDDEN,                                                    ///< 403 
     158                        SERVER_STATUSCODE_NOTFOUND,                                                     ///< 404 
     159                        SERVER_STATUSCODE_METHODNOTALLOWED,                                             ///< 405 
     160                        SERVER_STATUSCODE_NOTACCEPTABLE,                                                ///< 406 
     161                        SERVER_STATUSCODE_PROXYauthenticationREQUIRED,                                  ///< 407 
     162                        SERVER_STATUSCODE_REQUESTTIMEOUT,                                               ///< 408 
     163                        SERVER_STATUSCODE_CONFLICT,                                                     ///< 409 
     164                        SERVER_STATUSCODE_GONE,                                                         ///< 410 
     165                        SERVER_STATUSCODE_LENGTHREQUIRED,                                               ///< 411 
     166                        SERVER_STATUSCODE_PRECONDITIONFAILED,                                           ///< 412 
     167                        SERVER_STATUSCODE_REQUESTENTITYTOOLARGE,                                        ///< 413 
     168                        SERVER_STATUSCODE_REQUESTURITOOLONG,                                            ///< 414 
     169                        SERVER_STATUSCODE_UNSUPPORTEDMEDIATYPE,                                         ///< 415 
     170                        SERVER_STATUSCODE_REQUESTRANGENOTSATISFIABLE,                                   ///< 416 
     171                        SERVER_STATUSCODE_EXPECTATIONFAILED,                                            ///< 417 
     172                        SERVER_STATUSCODE_INTERNALSERVERERROR,                                          ///< 500 
     173                        SERVER_STATUSCODE_NOTIMPLEMENTED,                                               ///< 501 
     174                        SERVER_STATUSCODE_BADGATEWAY,                                                   ///< 502 
     175                        SERVER_STATUSCODE_SERVICEUNAVAILABLE,                                           ///< 503 
     176                        SERVER_STATUSCODE_GATEWAYTIMEOUT,                                               ///< 504 
     177                        SERVER_STATUSCODE_HTTPVERSIONNOTSUPPORTED,                                      ///< 505 
    178178                }; 
    179179 
     
    183183                enum serverPostFileErrEnum 
    184184                { 
    185                         SERVER_POSTFILEERR_NONE,                            ///< everything is OK 
    186                         SERVER_POSTFILEERR_ACCESS_DENY,                     ///< permissions error 
    187                         SERVER_POSTFILEERR_BAD_FILE_NAME,                   ///< filename is too long 
    188                         SERVER_POSTFILEERR_NO_SPACE,                        ///< not enough space to save the file 
    189                         SERVER_POSTFILEERR_NO_FILE,                         ///< file with such name not found 
     185                        SERVER_POSTFILEERR_NONE,                                        ///< everything is OK 
     186                        SERVER_POSTFILEERR_ACCESS_DENY,                                 ///< permissions error 
     187                        SERVER_POSTFILEERR_BAD_FILE_NAME,                               ///< filename is too long 
     188                        SERVER_POSTFILEERR_NO_SPACE,                                    ///< not enough space to save the file 
     189                        SERVER_POSTFILEERR_NO_FILE,                                     ///< file with such name not found 
    190190                }; 
    191191 
     
    200200                        __serverFile(); 
    201201 
    202                         dodoString name;                                    ///< real name of the file 
    203                         dodoString mime;                                    ///< mimetype of the file 
    204                         dodoString tmp_name;                                ///< path where it was temporary saved[empty, if file is stored in the memory] 
    205                         unsigned long size;                                 ///< size of the file 
    206                         short error;                                        ///< error code[see serverPostFileErrEnum] 
    207                         dodoString data;                                    ///< contains file data[if file is stored in the memory] 
     202                        dodoString name;                                                ///< real name of the file 
     203                        dodoString mime;                                                ///< mimetype of the file 
     204                        dodoString tmp_name;                                            ///< path where it was temporary saved[empty, if file is stored in the memory] 
     205                        unsigned long size;                                             ///< size of the file 
     206                        short error;                                                    ///< error code[see serverPostFileErrEnum] 
     207                        dodoString data;                                                ///< contains file data[if file is stored in the memory] 
    208208                }; 
    209209 
     
    229229                        __serverCookie(const dodoString &name, const dodoString &value, const dodoString &exDate, const dodoString &path, const dodoString &domain, bool secure); 
    230230 
    231                         dodoString name;                    ///< name of the cookie 
    232                         dodoString value;                   ///< value of the cookie 
    233  
    234                         dodoString expires;                 ///< expiration date 
    235                         dodoString path;                    ///< cookie path 
    236                         dodoString domain;                  ///< cookie domain 
    237                         bool secure;                        ///< defines cookie security; false by default 
     231                        dodoString name;                                ///< name of the cookie 
     232                        dodoString value;                               ///< value of the cookie 
     233 
     234                        dodoString expires;                             ///< expiration date 
     235                        dodoString path;                                ///< cookie path 
     236                        dodoString domain;                              ///< cookie domain 
     237                        bool secure;                                    ///< defines cookie security; false by default 
    238238                }; 
    239239 
     
    245245                        SERVER_REQUESTMETHOD_GET, 
    246246                        SERVER_REQUESTMETHOD_POST, 
    247                         SERVER_REQUESTMETHOD_GET_POST             ///< if POST method and request Url also contains ?name=value&.... format data 
     247                        SERVER_REQUESTMETHOD_GET_POST                         ///< if POST method and request Url also contains ?name=value&.... format data 
    248248                }; 
    249249 
     
    263263                struct __serverAuthInfo 
    264264                { 
    265                         dodoString user;                    ///< user name 
    266                         short type;                         ///< authenfication type[see cgiAuthTypeEnum] 
     265                        dodoString user;                                ///< user name 
     266                        short type;                                     ///< authenfication type[see cgiAuthTypeEnum] 
    267267                }; 
    268268 
     
    371371                                 * specific variables (from POST, GET, ENV or COOKIE) 
    372372                                 */ 
    373                                 dodoStringMap POST;                                                                     ///< POST variables 
    374                                 dodoStringMap GET;                                                                      ///< GET variables 
    375                                 mutable dodoMap<short, dodoString> ENVIRONMENT;                                         ///< environment variables[see cgiEnvironmentEnum] 
    376                                 dodoStringMap COOKIES;                                                                  ///< cookies sent by browser 
    377                                 dodoMap<dodoString, __serverFile, dodoMapStringCompare> FILES;                          ///< POST files 
    378                                 dodoMap<short, dodoString> HEADERS;                                                     ///< headers that will be printed with printHeaders method 
     373                                dodoStringMap POST;                                                                                     ///< POST variables 
     374                                dodoStringMap GET;                                                                                      ///< GET variables 
     375                                mutable dodoMap<short, dodoString> ENVIRONMENT;                                                         ///< environment variables[see cgiEnvironmentEnum] 
     376                                dodoStringMap COOKIES;                                                                                  ///< cookies sent by browser 
     377                                dodoMap<dodoString, __serverFile, dodoMapStringCompare> FILES;                                          ///< POST files 
     378                                dodoMap<short, dodoString> HEADERS;                                                                     ///< headers that will be printed with printHeaders method 
    379379 
    380380                                /** 
     
    479479                        private: 
    480480 
    481                                 short returnCode;                                       ///< HTTP return code 
    482                                 dodoString returnMessage;                               ///< HTTP return message 
    483  
    484                                 bool postFilesInMem;                                    ///< place of POST files 
    485  
    486                                 bool autocleanFiles;                                    ///< defines whether to clean POST files in destructor 
    487  
    488                                 dodoString postFilesTmpDir;                             ///< directory for POST files if on they are saved on the disk 
    489  
    490                                 dodoList<__serverCookie> cookies;                       ///< cookies 
    491                                 int method;                                             ///< request method 
    492  
    493                                 dodoString content;                                     ///< contents of the stdin for the POST request 
    494  
    495                                 dodoStringArray contenTypeExtensions;                                                   ///< contains contentype extension[boundary, modification-date, etc] 
     481                                short returnCode;                                                                                       ///< HTTP return code 
     482                                dodoString returnMessage;                                                                               ///< HTTP return message 
     483 
     484                                bool postFilesInMem;                                                                                    ///< place of POST files 
     485 
     486                                bool autocleanFiles;                                                                                    ///< defines whether to clean POST files in destructor 
     487 
     488                                dodoString postFilesTmpDir;                                                                             ///< directory for POST files if on they are saved on the disk 
     489 
     490                                dodoList<__serverCookie> cookies;                                                                       ///< cookies 
     491                                int method;                                                                                             ///< request method 
     492 
     493                                dodoString content;                                                                                     ///< contents of the stdin for the POST request 
     494 
     495                                dodoStringArray contenTypeExtensions;                                                                   ///< contains contentype extension[boundary, modification-date, etc] 
    496496 
    497497                                /** 
     
    507507                                static dodoString trim(const dodoString &data); 
    508508 
    509                                 exchange &cgiIO;                                                                                     ///< SERVER I/O instance 
    510  
    511                                 mutable bool headersPrinted;                                                                            ///< true if headers have been printed 
    512  
    513                                 static const char *environmentStatements[SERVER_ENVIRONMENTSTATEMENTS];                                 ///< names of environment variables[see cgiEnvironmentEnum] 
    514                                 static const dodoString responseHeaderStatements[SERVER_RESPONSEHEADERSTATEMENTS];                      ///< HTTP response headers[see cgiResponseHeaderEnum] 
    515                                 static const dodoString responseStatusStatements[SERVER_STATUSSTATEMENTS];                              ///< HTTP response headers[see cgiStatusCodeEnum] 
     509                                exchange &cgiIO;                                                                                                        ///< SERVER I/O instance 
     510 
     511                                mutable bool headersPrinted;                                                                                            ///< true if headers have been printed 
     512 
     513                                static const char *environmentStatements[SERVER_ENVIRONMENTSTATEMENTS];                                                 ///< names of environment variables[see cgiEnvironmentEnum] 
     514                                static const dodoString responseHeaderStatements[SERVER_RESPONSEHEADERSTATEMENTS];                                      ///< HTTP response headers[see cgiResponseHeaderEnum] 
     515                                static const dodoString responseStatusStatements[SERVER_STATUSSTATEMENTS];                                              ///< HTTP response headers[see cgiStatusCodeEnum] 
    516516 
    517517                                /** 
     
    520520                                struct __internalAuthInfo 
    521521                                { 
    522                                         dodoString user;                            ///< user name 
    523                                         dodoString password;                        ///< user password 
    524                                         dodoString realm;                           ///< explanation of the authentication request 
    525                                         dodoString nonce;                           ///< server-specified uniquely generated data 
    526                                         dodoString opaque;                          ///< server-specified uniquely generated data, which should be returned by the server unchanged 
    527                                         dodoString cnonce;                          ///< server-specified uniquely generated data 
    528                                         dodoString nonceCount;                      ///< hexadecimal count of the number of requests (including the current request) that the server has sent with the nonce value in this request 
    529                                         dodoString uri;                             ///< URI from Request-URI 
    530                                         dodoString qop;                             ///< quality of protection 
    531                                         dodoString response;                        ///< 32 hex digits. which proves that the user knows a password 
    532                                         short type;                                 ///< authenfication type[see cgiAuthTypeEnum] 
     522                                        dodoString user;                                                ///< user name 
     523                                        dodoString password;                                            ///< user password 
     524                                        dodoString realm;                                               ///< explanation of the authentication request 
     525                                        dodoString nonce;                                               ///< server-specified uniquely generated data 
     526                                        dodoString opaque;                                              ///< server-specified uniquely generated data, which should be returned by the server unchanged 
     527                                        dodoString cnonce;                                              ///< server-specified uniquely generated data 
     528                                        dodoString nonceCount;                                          ///< hexadecimal count of the number of requests (including the current request) that the server has sent with the nonce value in this request 
     529                                        dodoString uri;                                                 ///< URI from Request-URI 
     530                                        dodoString qop;                                                 ///< quality of protection 
     531                                        dodoString response;                                            ///< 32 hex digits. which proves that the user knows a password 
     532                                        short type;                                                     ///< authenfication type[see cgiAuthTypeEnum] 
    533533                                }; 
    534534 
    535                                 __internalAuthInfo authInfo;                 ///< authentication information 
     535                                __internalAuthInfo authInfo;                                 ///< authentication information 
    536536                }; 
    537537        }; 
  • trunk/include/libdodo/dataFormatJsonNode.h

    r985 r990  
    230230                                        private: 
    231231 
    232                                                 dodoString stringValue;                                                         ///< string value of node 
    233                                                 dodoMap<dodoString, node, dodoMapStringCompare> objectValue;                    ///< object value of node 
    234                                                 dodoArray<node> arrayValue;                                                     ///< array value of node 
    235                                                 bool booleanValue;                                                              ///< boolean value of node 
    236                                                 long numericValue;                                                              ///< numeric value of node 
    237  
    238                                                 short valueDataType;                                                            ///< data type of value 
     232                                                dodoString stringValue;                                                                                 ///< string value of node 
     233                                                dodoMap<dodoString, node, dodoMapStringCompare> objectValue;                                            ///< object value of node 
     234                                                dodoArray<node> arrayValue;                                                                             ///< array value of node 
     235                                                bool booleanValue;                                                                                      ///< boolean value of node 
     236                                                long numericValue;                                                                                      ///< numeric value of node 
     237 
     238                                                short valueDataType;                                                                                    ///< data type of value 
    239239                                }; 
    240240                        }; 
  • trunk/include/libdodo/dataFormatJsonNodeEx.h

    r985 r990  
    5656                                 * explanations for libdodo defined errors 
    5757                                 */ 
    58                 #define DATAFORMATJSONNODEEX_WRONGTYPEREQUESTED_STR "Wrong type was requested. Use proper get* method." 
    59                 #define DATAFORMATJSONNODEEX_ARRAYOUTOFRANGE_STR    "Array key is out of range." 
    60                 #define DATAFORMATJSONNODEEX_MALFORMEDJSON_STR      "Malformed json object." 
     58#define DATAFORMATJSONNODEEX_WRONGTYPEREQUESTED_STR "Wrong type was requested. Use proper get* method." 
     59#define DATAFORMATJSONNODEEX_ARRAYOUTOFRANGE_STR    "Array key is out of range." 
     60#define DATAFORMATJSONNODEEX_MALFORMEDJSON_STR      "Malformed json object." 
    6161 
    6262                                /** 
  • trunk/include/libdodo/dataFormatJsonProcessorEx.h

    r985 r990  
    5656                                 * explanations for libdodo defined errors 
    5757                                 */ 
    58                 #define DATAFORMATJSONPROCESSOREX_MALFORMEDJSONNUMERIC_STR "Malformed json object: numeric." 
    59                 #define DATAFORMATJSONPROCESSOREX_MALFORMEDJSONNULL_STR    "Malformed json object: null." 
    60                 #define DATAFORMATJSONPROCESSOREX_MALFORMEDJSONBOOLEAN_STR "Malformed json object: boolean." 
     58#define DATAFORMATJSONPROCESSOREX_MALFORMEDJSONNUMERIC_STR "Malformed json object: numeric." 
     59#define DATAFORMATJSONPROCESSOREX_MALFORMEDJSONNULL_STR    "Malformed json object: null." 
     60#define DATAFORMATJSONPROCESSOREX_MALFORMEDJSONBOOLEAN_STR "Malformed json object: boolean." 
    6161 
    6262                                /** 
  • trunk/include/libdodo/dataFormatXmlNode.h

    r985 r990  
    5656                                                node(); 
    5757 
    58                                                 dodoString name;                                                                                ///< name of the node [[tag]] 
     58                                                dodoString name;                                                                                                        ///< name of the node [[tag]] 
    5959 
    60                                                 dodoMap<dodoString, dodoArray<node>, dodoMapStringCompare> children;                            ///< children 
     60                                                dodoMap<dodoString, dodoArray<node>, dodoMapStringCompare> children;                                                    ///< children 
    6161 
    62                                                 dodoStringMap attributes;                                                                       ///< attributes 
     62                                                dodoStringMap attributes;                                                                                               ///< attributes 
    6363 
    64                                                 dodoString value;                                                                               ///< value of the node 
     64                                                dodoString value;                                                                                                       ///< value of the node 
    6565 
    66                                                 dodoString ns;                                                                                  ///< namespace of the node 
    67                                                 dodoString nsHref;                                                                              ///< uri "value" 
    68                                                 dodoString nsDef;                                                                               ///< namespace 
    69                                                 dodoString nsDefHref;                                                                           ///< namespace URI 
     66                                                dodoString ns;                                                                                                          ///< namespace of the node 
     67                                                dodoString nsHref;                                                                                                      ///< uri "value" 
     68                                                dodoString nsDef;                                                                                                       ///< namespace 
     69                                                dodoString nsDefHref;                                                                                                   ///< namespace URI 
    7070 
    71                                                 bool CDATA;                                                                                     ///< true if CDATA 
    72                                                 bool empty;                                                                                     ///< true if node doesn't have contents : `<node />` 
     71                                                bool CDATA;                                                                                                             ///< true if CDATA 
     72                                                bool empty;                                                                                                             ///< true if node doesn't have contents : `<node />` 
    7373                                }; 
    7474                        }; 
  • trunk/include/libdodo/dataFormatXmlProcessor.h

    r985 r990  
    6262                                        __nodeDef(); 
    6363 
    64                                         dodoString name;                                                    ///< name of the node [[tag]]; if empty - for first - gets root, for children - all[but if children do not have in definition own children] 
    65  
    66                                         dodoMap<dodoString, __nodeDef> children;                            ///< children definitions 
    67  
    68                                         long chLimit;                                                       ///< limit of children to search for[-1 for unlimit, default] 
    69                                         bool ignoreChildrenDef;                                             ///< if true - parse all children tree if no children definition is given; false by default 
    70  
    71                                         dodoStringArray attributes;                                         ///< node attrributes; if empty - take all 
    72                                         bool ignoreAttributesDef;                                           ///< if true - parse all attributes if no attributes definition is given; true by default 
    73  
    74                                         dodoString ns;                                                      ///< node namespace; if empty parser skips namespace specification 
     64                                        dodoString name;                                                                        ///< name of the node [[tag]]; if empty - for first - gets root, for children - all[but if children do not have in definition own children] 
     65 
     66                                        dodoMap<dodoString, __nodeDef> children;                                                ///< children definitions 
     67 
     68                                        long chLimit;                                                                           ///< limit of children to search for[-1 for unlimit, default] 
     69                                        bool ignoreChildrenDef;                                                                 ///< if true - parse all children tree if no children definition is given; false by default 
     70 
     71                                        dodoStringArray attributes;                                                             ///< node attrributes; if empty - take all 
     72                                        bool ignoreAttributesDef;                                                               ///< if true - parse all attributes if no attributes definition is given; true by default 
     73 
     74                                        dodoString ns;                                                                          ///< node namespace; if empty parser skips namespace specification 
    7575                                }; 
    7676 
     
    9191                                        __info(const dodoString &version, const dodoString &encoding, const dodoString &root, int compression); 
    9292 
    93                                         dodoString version;                 ///< version of XML document 
    94                                         dodoString encoding;                ///< encoding of XML document 
    95                                         dodoString root;                    ///< name of the root element of XML document 
    96  
    97                                         int compression;                    ///< compression of XML document 
     93                                        dodoString version;                                     ///< version of XML document 
     94                                        dodoString encoding;                                    ///< encoding of XML document 
     95                                        dodoString root;                                        ///< name of the root element of XML document 
     96 
     97                                        int compression;                                        ///< compression of XML document 
    9898                                }; 
    9999 
     
    153153                                                virtual node processBuffer(const dodoString &buffer); 
    154154 
    155                                                 bool icaseNames;                    ///< if true ignore case of names[false by default] 
     155                                                bool icaseNames;                                            ///< if true ignore case of names[false by default] 
    156156 
    157157                                                /** 
     
    207207                                                virtual node parse(const __nodeDef &definition); 
    208208 
    209                 #ifdef LIBXML2_EXT 
     209#ifdef LIBXML2_EXT 
    210210 
    211211                                                /** 
     
    253253                                                virtual void getNodeInfo(const xmlNodePtr xnode, node &sample); 
    254254 
    255                 #endif 
     255#endif 
    256256 
    257257                                        private: 
    258258 
    259                 #ifdef LIBXML2_EXT 
     259#ifdef LIBXML2_EXT 
    260260 
    261261                                                /** 
     
    266266                                                typedef int (*xcharCmp)(const xmlChar *one, const xmlChar *two); 
    267267 
    268                                                 xcharCmp cmpFunc;                    ///< name compare function 
     268                                                xcharCmp cmpFunc;                                            ///< name compare function 
    269269 
    270270                                                /** 
     
    275275                                                xmlNodePtr findNode(const __nodeDef &definition, xmlNodePtr node); 
    276276 
    277                                                 xmlDocPtr document;                     ///< XML Document 
    278                                                 xmlAttr *attribute;                     ///< XML attributes 
     277                                                xmlDocPtr document;                                             ///< XML Document 
     278                                                xmlAttr *attribute;                                             ///< XML attributes 
    279279 
    280280                                                /** 
     
    285285                                                static void errHandler(void *data, xmlErrorPtr error); 
    286286 
    287                 #endif 
    288  
    289                 #define PROCESSOR_STATEMENTS 11 
     287#endif 
     288 
     289#define PROCESSOR_STATEMENTS 11 
    290290 
    291291                                                /** 
     
    308308                                                }; 
    309309 
    310                                                 static const dodoString statements[PROCESSOR_STATEMENTS];                 ///< processor statements 
     310                                                static const dodoString statements[PROCESSOR_STATEMENTS];                                         ///< processor statements 
    311311                                }; 
    312312                        }; 
  • trunk/include/libdodo/dataFormatXmlProcessorEx.h

    r985 r990  
    5555                                 * explanations for libdodo defined errors 
    5656                                 */ 
    57                 #define DATAFORMATXMLPROCESSOREX_EMPTYDOCUMENT_STR "File or buffer doesn't contain XML document." 
    58                 #define DATAFORMATXMLPROCESSOREX_NOROOTNODE_STR    "XML document doesn't have root node." 
     57#define DATAFORMATXMLPROCESSOREX_EMPTYDOCUMENT_STR "File or buffer doesn't contain XML document." 
     58#define DATAFORMATXMLPROCESSOREX_NOROOTNODE_STR    "XML document doesn't have root node." 
    5959 
    6060                                /** 
  • trunk/include/libdodo/dataShared.h

    r978 r990  
    9898                        protected: 
    9999 
    100                                 int shm;                                    ///< shared data descriptor 
    101                                 void *mshared;                                ///< shared data 
    102                                 unsigned long size;                         ///< size of shared data 
     100                                int shm;                                                        ///< shared data descriptor 
     101                                void *mshared;                                                  ///< shared data 
     102                                unsigned long size;                                             ///< size of shared data 
    103103 
    104                                 char *key;                                  ///< key for the shared data 
     104                                char *key;                                                      ///< key for the shared data 
    105105                }; 
    106106        }; 
  • trunk/include/libdodo/dataTplProcessor.h

    r986 r990  
    4646                { 
    4747                        /** 
    48                          * @class cgiProcessor parses template 
     48                         * @class processor parses template 
    4949                         * @note brief reference on usage: 
    5050                         * syntax: 
     
    263263                                        virtual void clear(); 
    264264 
    265                                         dodoString tplBasePath;                 ///< base path for templates[if empty - full/relative path must be defined in preProcess/include] 
     265                                        dodoString tplBasePath;                                     ///< base path for templates[if empty - full/relative path must be defined in preProcess/include] 
    266266 
    267267                                protected: 
     
    413413                                        virtual dodoArray<unsigned long> detectNewLines(const dodoString &buffer); 
    414414 
    415                                         dodoArray< dodoArray<unsigned long> > newLinePositions;                 ///< stack of positions of new lines of templates 
    416  
    417                                         dodoStringList processed;                                                                                         ///< files that will be skipped due to the recursion 
    418  
    419                                         dodoStringMap global;                                                                                                   ///< set of global variables[user-set] 
    420                                         dodoMap<dodoString, dodoStringArray> globalArray;                                                                       ///< global user-defined variables(arrays) 
    421                                         dodoMap<dodoString, dodoStringMap> globalHash;                                                                          ///< global user-defined variables(hashes) 
    422                                         dodoMap<dodoString, dodoArray<dodoStringMap> > globalArrayHash;                                                         ///< global user-defined variables(array of hashes) 
    423  
    424                                         dodoMap<unsigned int, dodoStringMap> local;                                                                             ///< local variables[occur in `for` block] 
    425                                         dodoMap<unsigned int, dodoMap<dodoString, dodoStringMap> > localHash;                                                   ///< local variables(hashes)[occur in `for` block] 
    426  
    427                                         dodoStringMap dodo;                                                                                                     ///< auxillary variables[dodo defined][for dodo.*] 
    428  
    429                                         bool continueFlag;                                                                                                      ///< indicates `continue` state 
    430  
    431                                         unsigned int breakDeepness;                                                                                             ///< deepness of the break 
    432                                         unsigned int loopDeepness;                                                                                              ///< deepness of the loop 
    433  
    434                                         unsigned long iterator;                                                                                                 ///< amount of iterations of the loop 
    435  
    436                                         unsigned int namespaceDeepness;                                                                                               ///< cgi object through what output will be performed 
    437  
    438         #define PROCESSOR_STATEMENTS 30 
     415                                        dodoArray< dodoArray<unsigned long> > newLinePositions;                                                                                             ///< stack of positions of new lines of templates 
     416 
     417                                        dodoStringList processed;                                                                                                                           ///< files that will be skipped due to the recursion 
     418 
     419                                        dodoStringMap global;                                                                                                                               ///< set of global variables[user-set] 
     420                                        dodoMap<dodoString, dodoStringArray> globalArray;                                                                                                   ///< global user-defined variables(arrays) 
     421                                        dodoMap<dodoString, dodoStringMap> globalHash;                                                                                                      ///< global user-defined variables(hashes) 
     422                                        dodoMap<dodoString, dodoArray<dodoStringMap> > globalArrayHash;                                                                                     ///< global user-defined variables(array of hashes) 
     423 
     424                                        dodoMap<unsigned int, dodoStringMap> local;                                                                                                         ///< local variables[occur in `for` block] 
     425                                        dodoMap<unsigned int, dodoMap<dodoString, dodoStringMap> > localHash;                                                                               ///< local variables(hashes)[occur in `for` block] 
     426 
     427                                        dodoStringMap dodo;                                                                                                                                 ///< auxillary variables[dodo defined][for dodo.*] 
     428 
     429                                        bool continueFlag;                                                                                                                                  ///< indicates `continue` state 
     430 
     431                                        unsigned int breakDeepness;                                                                                                                         ///< deepness of the break 
     432                                        unsigned int loopDeepness;                                                                                                                          ///< deepness of the loop 
     433 
     434                                        unsigned long iterator;                                                                                                                             ///< amount of iterations of the loop 
     435 
     436                                        unsigned int namespaceDeepness;                                                                                                                     ///< cgi object through what output will be performed 
     437 
     438#define PROCESSOR_STATEMENTS 30 
    439439 
    440440                                        /** 
     
    476476                                        }; 
    477477 
    478                                         static const dodoString statements[PROCESSOR_STATEMENTS];                 ///< processor statements[for dodo.*, ...] 
     478                                        static const dodoString statements[PROCESSOR_STATEMENTS];                                     ///< processor statements[for dodo.*, ...] 
    479479                        }; 
    480480                }; 
  • trunk/include/libdodo/dataTplProcessorEx.h

    r986 r990  
    5757                         * explanations for libdodo defined errors 
    5858                         */ 
    59         #define DATATPLPROCESSOREX_WRONGFORSTATEMENT_STR     "Wrong `for` statement." 
    60         #define DATATPLPROCESSOREX_WRONGVARSTATEMENT_STR     "In variable statement `}` wasn't closed." 
    61         #define DATATPLPROCESSOREX_DODOISRESERVEDVARNAME_STR "dodo.* is reserved variable name." 
    62         #define DATATPLPROCESSOREX_WRONGASSIGNSTATEMENT_STR  "Wrong `assing` statement." 
    63         #define DATATPLPROCESSOREX_WRONGBLOCK_STR            "Wrong block construction." 
    64         #define DATATPLPROCESSOREX_NOTCLOSEDBRACKET_STR "Bracket was opened(closed) but not closed(opened)." 
     59#define DATATPLPROCESSOREX_WRONGFORSTATEMENT_STR     "Wrong `for` statement." 
     60#define DATATPLPROCESSOREX_WRONGVARSTATEMENT_STR     "In variable statement `}` wasn't closed." 
     61#define DATATPLPROCESSOREX_DODOISRESERVEDVARNAME_STR "dodo.* is reserved variable name." 
     62#define DATATPLPROCESSOREX_WRONGASSIGNSTATEMENT_STR  "Wrong `assing` statement." 
     63#define DATATPLPROCESSOREX_WRONGBLOCK_STR            "Wrong block construction." 
     64#define DATATPLPROCESSOREX_NOTCLOSEDBRACKET_STR "Bracket was opened(closed) but not closed(opened)." 
    6565 
    6666                        /** 
  • trunk/include/libdodo/dbAccumulator.h

    r972 r990  
    5959#endif 
    6060 
    61                         dodoString where;                                           ///< `where` for the request(can be used as `as` for `callFunction`) 
    62                         dodoStringArray fields;                                     ///< `fields` for request(can be used as `fieldsTo` for `insert_select`; as `arguments` for `callFunction`; as `arguments` for `callProcedure`; as `fields`/`field` `createIndex`) 
    63                         dodoArray<dodoStringArray> values;                          ///< `values` for the request(can be used as `fieldsFrom` for `insert_select`) 
    64                         dodoString table;                                           ///< `table` for the request(can be used `tableTo` for `insert_select`; as `name` for `callFunction`; as `name` for `callProcedure`) 
    65                         dodoString tableTo;                                         ///< `tableTo` for the request 
    66                         dodoString order;                                           ///< `order` for the request 
    67                         dodoString having;                                          ///< `having` for the request 
    68                         dodoString group;                                           ///< `group` for the request 
    69                         dodoString limit;                                           ///< `limit` for the result 
    70                         dodoString offset;                                          ///< `offset` for the result 
    71                         dodoStringArray subQueries;                                 ///< `subquery` 
    72                         dodoStringArray joinTables;                                 ///< join tables 
    73                         dodoStringArray joinConds;                                  ///< join conditions 
    74                         dodoArray<int> joinTypes;                                   ///< join types 
    75  
    76                         __connectionInfo dbInfo;                                     ///< data info to connect to the server 
    77  
    78                         int qType;                                                  ///< type of operation 
    79                         int qShift;                                                 ///< additional actions[see accumulatorAddEnum] 
     61                        dodoString where;                                                           ///< `where` for the request(can be used as `as` for `callFunction`) 
     62                        dodoStringArray fields;                                                     ///< `fields` for request(can be used as `fieldsTo` for `insert_select`; as `arguments` for `callFunction`; as `arguments` for `callProcedure`; as `fields`/`field` `createIndex`) 
     63                        dodoArray<dodoStringArray> values;                                          ///< `values` for the request(can be used as `fieldsFrom` for `insert_select`) 
     64                        dodoString table;                                                           ///< `table` for the request(can be used `tableTo` for `insert_select`; as `name` for `callFunction`; as `name` for `callProcedure`) 
     65                        dodoString tableTo;                                                         ///< `tableTo` for the request 
     66                        dodoString order;                                                           ///< `order` for the request 
     67                        dodoString having;                                                          ///< `having` for the request 
     68                        dodoString group;                                                           ///< `group` for the request 
     69                        dodoString limit;                                                           ///< `limit` for the result 
     70                        dodoString offset;                                                          ///< `offset` for the result 
     71                        dodoStringArray subQueries;                                                 ///< `subquery` 
     72                        dodoStringArray joinTables;                                                 ///< join tables 
     73                        dodoStringArray joinConds;                                                  ///< join conditions 
     74                        dodoArray<int> joinTypes;                                                   ///< join types 
     75 
     76                        __connectionInfo dbInfo;                                                    ///< data info to connect to the server 
     77 
     78                        int qType;                                                                  ///< type of operation 
     79                        int qShift;                                                                 ///< additional actions[see accumulatorAddEnum] 
    8080 
    8181#ifndef DB_WO_XEXEC 
    8282 
    83                         int &operType;                                              ///< xexec operation 
    84  
    85                         void *executor;                                             ///< class that executed hook 
     83                        int &operType;                                                          ///< xexec operation 
     84 
     85                        void *executor;                                                         ///< class that executed hook 
    8686 
    8787#endif 
     
    282282                                virtual void cleanCollected(); 
    283283 
    284                                 bool show;                                                      ///< if true try to get result from the request[select] 
    285  
    286                                 __xexecDbAccumulatorCollectedData collectedData;                        ///< data collected for xexec 
     284                                bool show;                                                                              ///< if true try to get result from the request[select] 
     285 
     286                                __xexecDbAccumulatorCollectedData collectedData;                                        ///< data collected for xexec 
    287287                }; 
    288288        }; 
  • trunk/include/libdodo/dbConnector.h

    r965 r990  
    8585                        __tuples(); 
    8686 
    87                         dodoArray<dodoStringArray> rows;                    ///< rows of data 
    88                         dodoStringArray fields;                             ///< names of fields 
     87                        dodoArray<dodoStringArray> rows;                                ///< rows of data 
     88                        dodoStringArray fields;                                         ///< names of fields 
    8989                }; 
    9090 
     
    110110                        __connectionInfo(const dodoString &db, const dodoString &host, const dodoString &user, const dodoString &password, const dodoString &path=__dodostring__, int port=0); 
    111111 
    112                         dodoString db;                      ///< database name 
    113                         dodoString host;                    ///< hostname 
    114                         dodoString user;                    ///< username 
    115                         dodoString password;                ///< password 
    116                         dodoString path;                    ///< path to db or unix socket 
    117                         unsigned int port;                  ///< port 
     112                        dodoString db;                                  ///< database name 
     113                        dodoString host;                                ///< hostname 
     114                        dodoString user;                                ///< username 
     115                        dodoString password;                            ///< password 
     116                        dodoString path;                                ///< path to db or unix socket 
     117                        unsigned int port;                              ///< port 
    118118                }; 
    119119 
     
    135135                class connector 
    136136#ifndef DB_WO_XEXEC 
    137                                                 : public xexec 
     137                        : public xexec 
    138138#endif 
    139139                { 
     
    334334                                virtual void exec(const dodoString &query = __dodostring__, bool result = false) = 0; 
    335335 
    336                                 bool reconnect;                 ///< if true tries to reconect in case when `exec` failed with connection error[true by default] 
     336                                bool reconnect;                                 ///< if true tries to reconect in case when `exec` failed with connection error[true by default] 
    337337 
    338338                        protected: 
    339339 
    340                                 bool connected;                 ///< true if connected to the db 
     340                                bool connected;                                 ///< true if connected to the db 
    341341                }; 
    342342        }; 
  • trunk/include/libdodo/dbMysql.h

    r976 r990  
    5353                struct __mysqlSslOptions 
    5454                { 
    55                         dodoString key;                     ///< pathname to the key file 
    56                         dodoString cert;                    ///< pathname to the certificate file 
    57                         dodoString ca;                      ///< pathname to the certificate authority file 
    58                         dodoString capath;                  ///< pathname to a directory that contains trusted SSL CA certificates in pem format 
    59                         dodoString cipher;                  ///< allowed SSL ciphers 
     55                        dodoString key;                                 ///< pathname to the key file 
     56                        dodoString cert;                                ///< pathname to the certificate file 
     57                        dodoString ca;                                  ///< pathname to the certificate authority file 
     58                        dodoString capath;                              ///< pathname to a directory that contains trusted SSL CA certificates in pem format 
     59                        dodoString cipher;                              ///< allowed SSL ciphers 
    6060                }; 
    6161 
     
    172172                        private: 
    173173 
    174                                 bool empty;                                     ///< true id mysqlRes is empty 
     174                                bool empty;                                                     ///< true id mysqlRes is empty 
    175175 
    176                                 MYSQL *mysqlHandle;                             ///< DB handle 
    177                                 MYSQL_RES *mysqlResult;                         ///< handle to result 
     176                                MYSQL *mysqlHandle;                                             ///< DB handle 
     177                                MYSQL_RES *mysqlResult;                                         ///< handle to result 
    178178 
    179                                 unsigned long type;                             ///< connection type 
     179                                unsigned long type;                                             ///< connection type 
    180180                }; 
    181181        }; 
  • trunk/include/libdodo/dbPostgresql.h

    r976 r990  
    163163                                enum encodingIdentefiersEnum 
    164164                                { 
    165                                     PG_SQL_ASCII = 0,           /* SQL/ASCII */ 
    166                                     PG_EUC_JP,                  /* EUC for Japanese */ 
    167                                     PG_EUC_CN,                  /* EUC for Chinese */ 
    168                                     PG_EUC_KR,                  /* EUC for Korean */ 
    169                                     PG_EUC_TW,                  /* EUC for Taiwan */ 
    170                                     PG_JOHAB,                   /* EUC for Korean JOHAB */ 
    171                                     PG_UTF8,                    /* Unicode UTF8 */ 
    172                                     PG_MULE_INTERNAL,           /* Mule internal code */ 
    173                                     PG_LATIN1,                  /* ISO-8859-1 Latin 1 */ 
    174                                     PG_LATIN2,                  /* ISO-8859-2 Latin 2 */ 
    175                                     PG_LATIN3,                  /* ISO-8859-3 Latin 3 */ 
    176                                     PG_LATIN4,                  /* ISO-8859-4 Latin 4 */ 
    177                                     PG_LATIN5,                  /* ISO-8859-9 Latin 5 */ 
    178                                     PG_LATIN6,                  /* ISO-8859-10 Latin6 */ 
    179                                     PG_LATIN7,                  /* ISO-8859-13 Latin7 */ 
    180                                     PG_LATIN8,                  /* ISO-8859-14 Latin8 */ 
    181                                     PG_LATIN9,                  /* ISO-8859-15 Latin9 */ 
    182                                     PG_LATIN10,                 /* ISO-8859-16 Latin10 */ 
    183                                     PG_WIN1256,                 /* windows-1256 */ 
    184                                     PG_WIN1258,                 /* Windows-1258 */ 
    185                                     PG_WIN866,                  /* (MS-DOS CP866) */ 
    186                                     PG_WIN874,                  /* windows-874 */ 
    187                                     PG_KOI8R,                   /* KOI8-R */ 
    188                                     PG_WIN1251,                 /* windows-1251 */ 
    189                                     PG_WIN1252,                 /* windows-1252 */ 
    190                                     PG_ISO_8859_5,              /* ISO-8859-5 */ 
    191                                     PG_ISO_8859_6,              /* ISO-8859-6 */ 
    192                                     PG_ISO_8859_7,              /* ISO-8859-7 */ 
    193                                     PG_ISO_8859_8,              /* ISO-8859-8 */ 
    194                                     PG_WIN1250,                 /* windows-1250 */ 
    195                                     PG_WIN1253,                 /* windows-1253 */ 
    196                                     PG_WIN1254,                 /* windows-1254 */ 
    197                                     PG_WIN1255,                 /* windows-1255 */ 
    198                                     PG_WIN1257,                 /* windows-1257 */ 
    199                                     /* PG_ENCODING_BE_LAST points to the above entry */ 
    200  
    201                                     /* followings are for client encoding only */ 
    202                                     PG_SJIS,                    /* Shift JIS (Winindows-932) */ 
    203                                     PG_BIG5,                    /* Big5 (Windows-950) */ 
    204                                     PG_GBK,                     /* GBK (Windows-936) */ 
    205                                     PG_UHC,                     /* UHC (Windows-949) */ 
    206                                     PG_GB18030,                 /* GB18030 */ 
    207  
    208                                     _PG_LAST_ENCODING_          /* mark only */ 
     165                                        PG_SQL_ASCII = 0,                           /* SQL/ASCII */ 
     166                                        PG_EUC_JP,                                  /* EUC for Japanese */ 
     167                                        PG_EUC_CN,                                  /* EUC for Chinese */ 
     168                                        PG_EUC_KR,                                  /* EUC for Korean */ 
     169                                        PG_EUC_TW,                                  /* EUC for Taiwan */ 
     170                                        PG_JOHAB,                                   /* EUC for Korean JOHAB */ 
     171                                        PG_UTF8,                                    /* Unicode UTF8 */ 
     172                                        PG_MULE_INTERNAL,                           /* Mule internal code */ 
     173                                        PG_LATIN1,                                  /* ISO-8859-1 Latin 1 */ 
     174                                        PG_LATIN2,                                  /* ISO-8859-2 Latin 2 */ 
     175                                        PG_LATIN3,                                  /* ISO-8859-3 Latin 3 */ 
     176                                        PG_LATIN4,                                  /* ISO-8859-4 Latin 4 */ 
     177                                        PG_LATIN5,                                  /* ISO-8859-9 Latin 5 */ 
     178                                        PG_LATIN6,                                  /* ISO-8859-10 Latin6 */ 
     179                                        PG_LATIN7,                                  /* ISO-8859-13 Latin7 */ 
     180                                        PG_LATIN8,                                  /* ISO-8859-14 Latin8 */ 
     181                                        PG_LATIN9,                                  /* ISO-8859-15 Latin9 */ 
     182                                        PG_LATIN10,                                 /* ISO-8859-16 Latin10 */ 
     183                                        PG_WIN1256,                                 /* windows-1256 */ 
     184                                        PG_WIN1258,                                 /* Windows-1258 */ 
     185                                        PG_WIN866,                                  /* (MS-DOS CP866) */ 
     186                                        PG_WIN874,                                  /* windows-874 */ 
     187                                        PG_KOI8R,                                   /* KOI8-R */ 
     188                                        PG_WIN1251,                                 /* windows-1251 */ 
     189                                        PG_WIN1252,                                 /* windows-1252 */ 
     190                                        PG_ISO_8859_5,                              /* ISO-8859-5 */ 
     191                                        PG_ISO_8859_6,                              /* ISO-8859-6 */ 
     192                                        PG_ISO_8859_7,                              /* ISO-8859-7 */ 
     193                                        PG_ISO_8859_8,                              /* ISO-8859-8 */ 
     194                                        PG_WIN1250,                                 /* windows-1250 */ 
     195                                        PG_WIN1253,                                 /* windows-1253 */ 
     196                                        PG_WIN1254,                                 /* windows-1254 */ 
     197                                        PG_WIN1255,                                 /* windows-1255 */ 
     198                                        PG_WIN1257,                                 /* windows-1257 */ 
     199                                                                                                                                /* PG_ENCODING_BE_LAST points to the above entry */ 
     200 
     201                                                                                                                                /* followings are for client encoding only */ 
     202                                        PG_SJIS,                                    /* Shift JIS (Winindows-932) */ 
     203                                        PG_BIG5,                                    /* Big5 (Windows-950) */ 
     204                                        PG_GBK,                                     /* GBK (Windows-936) */ 
     205                                        PG_UHC,                                     /* UHC (Windows-949) */ 
     206                                        PG_GB18030,                                 /* GB18030 */ 
     207 
     208                                        _PG_LAST_ENCODING_                          /* mark only */ 
    209209                                }; 
    210210 
    211                                 const static dodoString encodingStatements[POSTGRESQL_ENCODINGSTATEMENTS]; ///< encoding string representation according to encodingIdentefiersEnum 
     211                                const static dodoString encodingStatements[POSTGRESQL_ENCODINGSTATEMENTS];                 ///< encoding string representation according to encodingIdentefiersEnum 
    212212#endif 
    213213 
     
    217217                                struct __blob 
    218218                                { 
    219                                         unsigned int reference; ///< reference in request 
    220                                         const dodoString *value; ///< pointer to blob value 
     219                                        unsigned int reference;                         ///< reference in request 
     220                                        const dodoString *value;                        ///< pointer to blob value 
    221221                                }; 
    222222 
    223                                 dodoList<__blob> blobs; ///< references to blob data 
     223                                dodoList<__blob> blobs;                 ///< references to blob data 
    224224 
    225225                        private: 
    226226 
    227                                 bool empty;                                     ///< true id pgResult is empty 
    228  
    229                                 PGconn *pgHandle;                               ///< DB handle 
    230                                 PGresult *pgResult;                             ///< handlde to result 
     227                                bool empty;                                                     ///< true id pgResult is empty 
     228 
     229                                PGconn *pgHandle;                                               ///< DB handle 
     230                                PGresult *pgResult;                                             ///< handlde to result 
    231231                }; 
    232232        }; 
  • trunk/include/libdodo/dbSqlConstructor.h

    r976 r990  
    5555 
    5656                        /** 
    57                          * @class sqlConstructor provide construction of SQL request 
     57                         * @class constructor provide construction of SQL request 
    5858                         * @note all data become escaped and framed with '. Names of fields are not framed with ` to prevent cases as `count(*)`, etc. 
    5959                         * If you want to prevent data framing define preventFraming sqlConstructor class propertie as true but remember 
     
    101101                                protected: 
    102102 
    103                                         dodoMap<dodoString, dodoMap<dodoString, short, dodoMapICaseStringCompare>, dodoMapICaseStringCompare> fieldTypes;    ///< hash of 'db:table' => 'field => 'type'' 
    104  
    105                                         dodoString request;                                                                                     ///< SQL statement 
     103                                        dodoMap<dodoString, dodoMap<dodoString, short, dodoMapICaseStringCompare>, dodoMapICaseStringCompare> fieldTypes;                           ///< hash of 'db:table' => 'field => 'type'' 
     104 
     105                                        dodoString request;                                                                                                                         ///< SQL statement 
    106106 
    107107                                        /** 
     
    157157                                        virtual void additionalCollect(unsigned int qTypeToCheck, const dodoString &collectedString); 
    158158 
    159         #define SQLCONSTRUCTOR_STATEMENTS 21 
     159#define SQLCONSTRUCTOR_STATEMENTS 21 
    160160 
    161161                                        /** 
     
    187187                                        }; 
    188188 
    189                                         static const dodoString statements[SQLCONSTRUCTOR_STATEMENTS];                 ///< sqlConstructor statements 
    190  
    191                                         static const dodoString sqlAddArr[ACCUMULATOR_ADDREQUESTSTATEMENTS];                                    ///< additional statements(`where`, `limit`, ...) 
    192  
    193                                         static const dodoString sqlQStArr[SUBREQUESTSTATEMENTS];                                      ///< statements for complex queries(`union`, ...) 
    194  
    195                                         static const dodoString sqlJoinArr[JOINTYPESTSTATEMENTS];                              ///< statements for `join` queries 
     189                                        static const dodoString statements[SQLCONSTRUCTOR_STATEMENTS];                                                              ///< sqlConstructor statements 
     190 
     191                                        static const dodoString sqlAddArr[ACCUMULATOR_ADDREQUESTSTATEMENTS];                                                        ///< additional statements(`where`, `limit`, ...) 
     192 
     193                                        static const dodoString sqlQStArr[SUBREQUESTSTATEMENTS];                                                                    ///< statements for complex queries(`union`, ...) 
     194 
     195                                        static const dodoString sqlJoinArr[JOINTYPESTSTATEMENTS];                                                                   ///< statements for `join` queries 
    196196                        }; 
    197                 };       
     197                }; 
    198198        }; 
    199199}; 
  • trunk/include/libdodo/dbSqlConstructorEx.h

    r986 r990  
    5454                         * explanations for libdodo defined errors 
    5555                         */ 
    56         #define DBSQLCONSTRUCTOREX_EMPTYREQUEST_STR    "Query is empty. Are you sure?" 
    57         #define DBSQLCONSTRUCTOREX_UNKNOWNJOINTYPE_STR "Unknown join type." 
     56#define DBSQLCONSTRUCTOREX_EMPTYREQUEST_STR    "Query is empty. Are you sure?" 
     57#define DBSQLCONSTRUCTOREX_UNKNOWNJOINTYPE_STR "Unknown join type." 
    5858 
    5959                        /** 
  • trunk/include/libdodo/dbSqlite.h

    r976 r990  
    147147                                struct __blob 
    148148                                { 
    149                                         unsigned int reference; ///< reference in request 
    150                                         const dodoString *value; ///< pointer to blob value 
     149                                        unsigned int reference;                         ///< reference in request 
     150                                        const dodoString *value;                        ///< pointer to blob value 
    151151                                }; 
    152152 
    153                                 dodoList<__blob> blobs; ///< references to blob data 
     153                                dodoList<__blob> blobs;                 ///< references to blob data 
    154154 
    155155                        private: 
    156156 
    157                                 sqlite3 *sqliteHandle;                                  ///< DB handle 
    158                                 sqlite3_stmt *sqliteResult;                             ///< handlde to result 
     157                                sqlite3 *sqliteHandle;                                                  ///< DB handle 
     158                                sqlite3_stmt *sqliteResult;                                             ///< handlde to result 
    159159 
    160                                 bool empty;                                             ///< true if liteStmt is empty 
     160                                bool empty;                                                             ///< true if liteStmt is empty 
    161161                }; 
    162162        }; 
  • trunk/include/libdodo/exceptionBasic.h

    r986 r990  
    129129                }; 
    130130 
    131         #define BASEEX_MODULES    48 
    132  
    133         #ifdef DL_EXT 
     131#define BASEEX_MODULES    48 
     132 
     133#ifdef DL_EXT 
    134134 
    135135                /** 
     
    138138                struct __basicMod 
    139139                { 
    140                         char name[64];                          ///< name of the library 
    141                         char discription[256];                  ///< discription of the library 
    142                         char hook[64];                          ///< name of the function in module that will be as a hook 
    143                         short module;                           ///< for what module handler should be set[see errorModuleEnum] 
     140                        char name[64];                                      ///< name of the library 
     141                        char discription[256];                              ///< discription of the library 
     142                        char hook[64];                                      ///< name of the function in module that will be as a hook 
     143                        short module;                                       ///< for what module handler should be set[see errorModuleEnum] 
    144144                }; 
    145145 
     
    155155                typedef void (*deinitBaseExModule)(); 
    156156 
    157         #endif 
     157#endif 
    158158 
    159159                class basic; 
     
    171171                 */ 
    172172                class basic : public std::exception, 
    173                                            public singleton<basic> 
     173                                          public singleton<basic> 
    174174                { 
    175175                        friend class singleton<basic>; 
     
    180180                                 * constructor 
    181181                                 */ 
    182                                 basic() throw(); 
     182                                basic() throw (); 
    183183 
    184184                        public: 
     
    195195                                 * @param message defines custom message that might clarify the exception 
    196196                                 */ 
    197                                 basic(int errModule, int functionID, int errnoSource, int baseErrno, const dodoString &baseErrstr, unsigned long line, const dodoString &file, const dodoString &message = __dodostring__) throw(); 
     197                                basic(int errModule, int functionID, int errnoSource, int baseErrno, const dodoString &baseErrstr, unsigned long line, const dodoString &file, const dodoString &message = __dodostring__) throw (); 
    198198 
    199199                                /** 
    200200                                 * destructor 
    201201                                 */ 
    202                                 ~basic() throw(); 
     202                                ~basic() throw (); 
    203203 
    204204                                /** 
     
    210210                                 * return error string 
    211211                                 */ 
    212                                 virtual const char *what() const throw(); 
    213  
    214                                 int errModule;                  ///< module where exception has been thrown 
    215                                 int funcID;                       ///< function where exception has been thrown[see *Ex.h headers for IDs] 
    216                                 int errnoSource;                ///< the source of the error code and of the error string 
    217  
    218                                 int baseErrno;                              ///< error code 
    219                                 dodoString baseErrstr;                      ///< error string 
    220  
    221                                 unsigned long line;                         ///< line where exception has been thrown 
    222                                 dodoString file;                            ///< file where exception has been thrown 
    223  
    224                                 dodoString message;                         ///< custom message that might clarify the exception 
     212                                virtual const char *what() const throw (); 
     213 
     214                                int errModule;                                              ///< module where exception has been thrown 
     215                                int funcID;                                                 ///< function where exception has been thrown[see *Ex.h headers for IDs] 
     216                                int errnoSource;                                            ///< the source of the error code and of the error string 
     217 
     218                                int baseErrno;                                              ///< error code 
     219                                dodoString baseErrstr;                                      ///< error string 
     220 
     221                                unsigned long line;                                         ///< line where exception has been thrown 
     222                                dodoString file;                                            ///< file where exception has been thrown 
     223 
     224                                dodoString message;                                         ///< custom message that might clarify the exception 
    225225 
    226226                                /** 
     
    250250                                static void unsetErrorHandlers(); 
    251251 
    252         #ifdef DL_EXT 
     252#ifdef DL_EXT 
    253253 
    254254                                /** 
     
    278278                                static bool setErrorHandlers(const dodoString &path, void *data, void *toInit = NULL); 
    279279 
    280         #endif 
     280#endif 
    281281 
    282282                        protected: 
    283283 
    284                                 static errorHandler handlersEx[BASEEX_MODULES];                     ///< exception handlers 
    285  
    286                                 static bool handlerSetEx[BASEEX_MODULES];                           ///< map of set handlers 
    287  
    288                                 static void *handlerDataEx[BASEEX_MODULES];                         ///< data that will be passed to the handler 
    289  
    290         #ifdef DL_EXT 
    291  
    292                                 static void *handlesEx[BASEEX_MODULES];                             ///< handles to the libraries 
    293  
    294                                 static bool handlesOpenedEx[BASEEX_MODULES];                        //< map of the opened libraries 
    295  
    296         #endif 
     284                                static errorHandler handlersEx[BASEEX_MODULES];                                     ///< exception handlers 
     285 
     286                                static bool handlerSetEx[BASEEX_MODULES];                                           ///< map of set handlers 
     287 
     288                                static void *handlerDataEx[BASEEX_MODULES];                                         ///< data that will be passed to the handler 
     289 
     290#ifdef DL_EXT 
     291 
     292                                static void *handlesEx[BASEEX_MODULES];                                             ///< handles to the libraries 
     293 
     294                                static bool handlesOpenedEx[BASEEX_MODULES];                                        //< map of the opened libraries 
     295 
     296#endif 
    297297 
    298298                                /** 
     
    325325                                        protected: 
    326326 
    327         #ifdef PTHREAD_EXT 
    328  
    329                                                 static pthread_mutex_t keeper;                     ///< mutex 
    330  
    331         #endif 
     327#ifdef PTHREAD_EXT 
     328 
     329                                                static pthread_mutex_t keeper;                                             ///< mutex 
     330 
     331#endif 
    332332                                }; 
    333333 
    334                                 static syncThreadSection keeper;             ///< lock 
     334                                static syncThreadSection keeper;                             ///< lock 
    335335 
    336336                                /** 
  • trunk/include/libdodo/graphicsImage.h

    r980 r990  
    6868                                                                          void *executor); 
    6969 
    70                         ImageInfo *imInfo;                                              ///< image info handler 
    71                         Image *imHandle;                                                ///< image handler 
    72  
    73                         int &operType;                                                  ///< xexec operation 
    74  
    75                         void *executor;                                                 ///< class that executed hook 
    76                 }; 
    77  
    78         #define IMAGE_MAPPINGSTATEMENTS 3 
     70                        ImageInfo *imInfo;                                                          ///< image info handler 
     71                        Image *imHandle;                                                            ///< image handler 
     72 
     73                        int &operType;                                                              ///< xexec operation 
     74 
     75                        void *executor;                                                             ///< class that executed hook 
     76                }; 
     77 
     78#define IMAGE_MAPPINGSTATEMENTS 3 
    7979 
    8080                /** 
     
    8888                }; 
    8989 
    90         #define IMAGE_PIXELSIZESTATEMENTS 6 
     90#define IMAGE_PIXELSIZESTATEMENTS 6 
    9191 
    9292                /** 
     
    9595                enum imagePixelSizeEnum 
    9696                { 
    97                         IMAGE_PIXELSIZE_CHAR,           ///< 8 bits 
    98                         IMAGE_PIXELSIZE_SHORT,          ///< 16 bits 
    99                         IMAGE_PIXELSIZE_INT,            ///< 32(16 on some CPUs) bits 
    100                         IMAGE_PIXELSIZE_LONG,           ///< 32(32 on some CPUs) bits 
    101                         IMAGE_PIXELSIZE_FLOAT,          ///< 32 bits 
    102                         IMAGE_PIXELSIZE_DOUBLE,         ///< 64 bits 
    103                 }; 
    104  
    105         #define IMAGE_ENCODERSTATEMENTS 6 
     97                        IMAGE_PIXELSIZE_CHAR,                       ///< 8 bits 
     98                        IMAGE_PIXELSIZE_SHORT,                      ///< 16 bits 
     99                        IMAGE_PIXELSIZE_INT,                        ///< 32(16 on some CPUs) bits 
     100                        IMAGE_PIXELSIZE_LONG,                       ///< 32(32 on some CPUs) bits 
     101                        IMAGE_PIXELSIZE_FLOAT,                      ///< 32 bits 
     102                        IMAGE_PIXELSIZE_DOUBLE,                     ///< 64 bits 
     103                }; 
     104 
     105#define IMAGE_ENCODERSTATEMENTS 6 
    106106 
    107107                /** 
     
    118118                }; 
    119119 
    120         #define IMAGE_COMPRESSIONSTATEMENTS 8 
     120#define IMAGE_COMPRESSIONSTATEMENTS 8 
    121121 
    122122                /** 
     
    130130                        IMAGE_COMPRESSION_RLE, 
    131131                        IMAGE_COMPRESSION_ZIP, 
    132                         IMAGE_COMPRESSION_JPEG,                 ///< only for JPEG 
    133                         IMAGE_COMPRESSION_LOSSLESSJPEG,         ///< only for JPEG 
    134                         IMAGE_COMPRESSION_JPEG2000,             ///< only for JPEG 
     132                        IMAGE_COMPRESSION_JPEG,                             ///< only for JPEG 
     133                        IMAGE_COMPRESSION_LOSSLESSJPEG,                     ///< only for JPEG 
     134                        IMAGE_COMPRESSION_JPEG2000,                         ///< only for JPEG 
    135135                }; 
    136136 
     
    140140                struct __imageInfo 
    141141                { 
    142                         void *data;                     ///< 2D array of pixels 
    143                         unsigned long width;            ///< width of the image 
    144                         unsigned long height;           ///< height of the image 
    145                         short mapping;                  ///< type of mapping[see imageMappingEnum] 
    146                         short pixelSize;                ///< type of pixel 
     142                        void *data;                                 ///< 2D array of pixels 
     143                        unsigned long width;                        ///< width of the image 
     144                        unsigned long height;                       ///< height of the image 
     145                        short mapping;                              ///< type of mapping[see imageMappingEnum] 
     146                        short pixelSize;                            ///< type of pixel 
    147147                }; 
    148148 
     
    152152                struct __imageSize 
    153153                { 
    154                         unsigned long width;            ///< width of the image 
    155                         unsigned long height;           ///< height of the image 
     154                        unsigned long width;                        ///< width of the image 
     155                        unsigned long height;                       ///< height of the image 
    156156                }; 
    157157 
     
    266266                        protected: 
    267267 
    268                                 ExceptionInfo *exInfo;                                      ///< exception info handler 
    269  
    270                                 __xexecImageCollectedData collectedData;                    ///< data collected for xexec 
     268                                ExceptionInfo *exInfo;                                                      ///< exception info handler 
     269 
     270                                __xexecImageCollectedData collectedData;                                    ///< data collected for xexec 
    271271 
    272272                        private: 
    273273 
    274                                 static const char *mappingStArr[IMAGE_MAPPINGSTATEMENTS];                                    ///< image mapping statements 
    275                                 static const StorageType pixelSizeStArr[IMAGE_PIXELSIZESTATEMENTS];                          ///< pixel type statements 
    276                                 static const char *encoderStArr[IMAGE_ENCODERSTATEMENTS];                                    ///< image encoder 
    277                                 static const CompressionType compressionStArr[IMAGE_COMPRESSIONSTATEMENTS];                  ///< image compression 
     274                                static const char *mappingStArr[IMAGE_MAPPINGSTATEMENTS];                                                       ///< image mapping statements 
     275                                static const StorageType pixelSizeStArr[IMAGE_PIXELSIZESTATEMENTS];                                             ///< pixel type statements 
     276                                static const char *encoderStArr[IMAGE_ENCODERSTATEMENTS];                                                       ///< image encoder 
     277                                static const CompressionType compressionStArr[IMAGE_COMPRESSIONSTATEMENTS];                                     ///< image compression 
    278278                }; 
    279279 
     
    297297                        private: 
    298298 
    299                                 bool initialized;             ///< true if environment was initialized in the object 
     299                                bool initialized;                             ///< true if environment was initialized in the object 
    300300                }; 
    301301 
  • trunk/include/libdodo/graphicsImageEx.h

    r980 r990  
    5252                 * explanations for libdodo defined errors 
    5353                 */ 
    54         #define GRAPHICSIMAGEEX_BADINFO_STR    "Bad information for image was provided." 
    55         #define GRAPHICSIMAGEEX_EMPTYIMAGE_STR "The image is empty. It was either closed or not opened." 
    56         #define GRAPHICSIMAGEEX_LONGPATH_STR "Path to image is too long." 
     54#define GRAPHICSIMAGEEX_BADINFO_STR    "Bad information for image was provided." 
     55#define GRAPHICSIMAGEEX_EMPTYIMAGE_STR "The image is empty. It was either closed or not opened." 
     56#define GRAPHICSIMAGEEX_LONGPATH_STR "Path to image is too long." 
    5757 
    5858                /** 
  • trunk/include/libdodo/graphicsTransform.h

    r980 r990  
    4848        { 
    4949                /** 
    50                  * @enum transformRotateDirAngEnum defines rotation options 
     50                 * @enum transformRotateDirectionAngleEnum defines rotation options 
    5151                 */ 
    5252                enum transformRotateDirectionAngleEnum 
     
    118118                        protected: 
    119119 
    120                                 image *im;///< image to perform transformations 
     120                                image *im;                ///< image to perform transformations 
    121121                }; 
    122122 
  • trunk/include/libdodo/graphicsTransformEx.h

    r980 r990  
    5050                 * explanations for libdodo defined errors 
    5151                 */ 
    52         #define GRAPHICSTRANSFORMEX_EMPTYIMAGE_STR "The image is empty. It was either closed or not opened." 
     52#define GRAPHICSTRANSFORMEX_EMPTYIMAGE_STR "The image is empty. It was either closed or not opened." 
    5353 
    5454                /** 
  • trunk/include/libdodo/ioChannel.h

    r979 r990  
    7171                        __xexecIoChannelCollectedData(int &operType, void *executor); 
    7272 
    73                         dodoString buffer;                          ///< data buffer 
     73                        dodoString buffer;                                      ///< data buffer 
    7474 
    75                         int &operType;                              ///< xexec operation 
     75                        int &operType;                                          ///< xexec operation 
    7676 
    77                         void *executor;                             ///< class that executed hook 
     77                        void *executor;                                         ///< class that executed hook 
    7878                }; 
    7979 
     
    155155                                virtual void flush() = 0; 
    156156 
    157                                 unsigned long inSize;                   ///< size of data block for read* operations 
    158                                 unsigned long outSize;                  ///< size of data block for write* operations 
     157                                unsigned long inSize;                                   ///< size of data block for read* operations 
     158                                unsigned long outSize;                                  ///< size of data block for write* operations 
    159159 
    160160                        protected: 
     
    184184                                virtual void _writeStream(const char * const data) = 0; 
    185185 
    186                                 bool opened;                 ///< true if I/O *session* is opened 
     186                                bool opened;                                 ///< true if I/O *session* is opened 
    187187 
    188188#ifndef IO_WO_XEXEC 
    189189 
    190                                 __xexecIoChannelCollectedData collectedData;                   ///< data collected for xexec 
     190                                __xexecIoChannelCollectedData collectedData;                                   ///< data collected for xexec 
    191191 
    192192#endif 
  • trunk/include/libdodo/ioEvent.h

    r979 r990  
    5050                struct __eventInOutDescriptors 
    5151                { 
    52                         int position;               ///< identificator of the pair 
     52                        int position;                           ///< identificator of the pair 
    5353 
    54                         int in;                     ///< input stream 
    55                         int out;                    ///< output stream 
     54                        int in;                                 ///< input stream 
     55                        int out;                                ///< output stream 
    5656                }; 
    5757 
     
    128128                        protected: 
    129129 
    130                                 dodoArray<__eventInOutDescriptors> desc;                     ///< stream pairs 
     130                                dodoArray<__eventInOutDescriptors> desc;                                        ///< stream pairs 
    131131 
    132                                 int descs;                                              ///< descriptors counter 
     132                                int descs;                                                                      ///< descriptors counter 
    133133                }; 
    134134        }; 
  • trunk/include/libdodo/ioFifo.h

    r979 r990  
    6666                { 
    6767                        public: 
    68                                  
     68 
    6969