Changeset 1180:80e8c23a659a


Ignore:
Timestamp:
03/15/09 12:45:18 (3 years ago)
Author:
niam
Branch:
default
Message:

organized includes in graphicsTransform, ioChannel

Location:
trunk
Files:
5 edited

Legend:

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

    r1179 r1180  
    389389        }; 
    390390}; 
    391  
    392 #endif 
    393  
    394 #endif 
     391#endif 
     392 
     393#endif 
  • trunk/include/libdodo/graphicsTransform.h

    r1160 r1180  
    3434 
    3535#ifdef IMAGEMAGICK_EXT 
    36  
    37 #ifndef IMAGEMAGICK_PRE_63 
    38  
    39 #include <magick/MagickCore.h> 
    40  
    41 #else 
    42  
    43 #include <magick/ImageMagick.h> 
    44  
    45 #endif 
    46  
    47 #include <math.h> 
    48  
    49 #include <libdodo/types.h> 
    50 #include <libdodo/graphicsImage.h> 
    51 #include <libdodo/graphicsTransformEx.h> 
    52 #include <libdodo/xexec.h> 
    53  
    5436namespace dodo 
    5537{ 
    5638        namespace graphics 
    5739        { 
     40                class image; 
     41 
    5842                /** 
    5943                 * @enum transformRotateDirectionAngleEnum defines rotation options 
     
    133117        }; 
    134118}; 
    135  
    136119#endif 
    137120 
  • trunk/include/libdodo/ioChannel.h

    r1166 r1180  
    3636#include <libdodo/types.h> 
    3737#include <libdodo/ioEventInfo.h> 
    38 #include <libdodo/pcSyncProcessSection.h> 
    39 #include <libdodo/pcSyncThreadSection.h> 
    40 #include <libdodo/pcSyncProtector.h> 
    4138 
    4239namespace dodo 
    4340{ 
     41        namespace pc 
     42        { 
     43                namespace sync 
     44                { 
     45                        class section; 
     46                }; 
     47        }; 
     48 
    4449        namespace io 
    4550        { 
     
    7075 
    7176#ifndef IO_WO_XEXEC 
    72  
    7377                /** 
    7478                 * @class __xexecIoChannelCollectedData 
     
    8993                        dodoString buffer; ///< data buffer 
    9094                }; 
    91  
    9295#endif 
    9396 
     
    178181 
    179182#ifndef IO_WO_XEXEC 
     183                        __xexecIoChannelCollectedData collectedData;    ///< data collected for xexec 
     184#endif 
    180185 
    181                         __xexecIoChannelCollectedData collectedData;    ///< data collected for xexec 
    182  
    183 #endif 
    184186                        pc::sync::section *keeper;                      ///< section locker 
    185187                        short protection;                               ///< type of IO protection[see channelProtectionTypeEnum] 
  • trunk/src/graphicsTransform.cc

    r1162 r1180  
    2828 */ 
    2929 
    30 #include <libdodo/graphicsTransform.h> 
     30#include <libdodo/directives.h> 
    3131 
    3232#ifdef IMAGEMAGICK_EXT 
     33#ifndef IMAGEMAGICK_PRE_63 
     34#include <magick/MagickCore.h> 
     35#else 
     36#include <magick/ImageMagick.h> 
     37#endif 
     38 
     39#include <math.h> 
     40 
     41#include <libdodo/graphicsTransform.h> 
     42#include <libdodo/graphicsImage.h> 
     43#include <libdodo/graphicsTransformEx.h> 
    3344 
    3445using namespace dodo::graphics; 
  • trunk/src/ioChannel.cc

    r1166 r1180  
    2828 */ 
    2929 
     30#include <libdodo/directives.h> 
     31 
    3032#include <libdodo/ioChannel.h> 
     33#include <libdodo/xexec.h> 
     34#include <libdodo/types.h> 
     35#include <libdodo/ioEventInfo.h> 
     36#include <libdodo/pcSyncProcessSection.h> 
     37#include <libdodo/pcSyncThreadSection.h> 
     38#include <libdodo/pcSyncProtector.h> 
    3139 
    3240using namespace dodo::io; 
    3341 
    3442#ifndef IO_WO_XEXEC 
    35  
    3643__xexecIoChannelCollectedData::__xexecIoChannelCollectedData(xexec *a_executor, 
    3744                                                                                                                         short execObject) : __xexecCollectedData(a_executor, execObject) 
    3845{ 
    3946} 
    40  
    4147#endif 
    4248 
     
    4753                                                                         keeper(NULL), 
    4854                                                                         protection(protection) 
    49  
    50 #ifndef IO_WO_XEXEC 
    51  
     55#ifndef IO_WO_XEXEC 
    5256                                                                         , 
    5357                                                                         collectedData(this, XEXEC_OBJECT_XEXEC) 
    54  
    5558#endif 
    5659{ 
     
    115118 
    116119#ifndef IO_WO_XEXEC 
    117  
    118120        collectedData.buffer.assign(data, inSize); 
    119121        delete [] data; 
     
    124126 
    125127        collectedData.buffer.clear(); 
    126  
    127 #else 
    128  
     128#else 
    129129        a_str.assign(data, inSize); 
    130130 
    131131        delete [] data; 
    132  
    133132#endif 
    134133 
     
    167166 
    168167#ifndef IO_WO_XEXEC 
    169  
    170168        if (n > 0) 
    171169        { 
     
    184182 
    185183        collectedData.buffer.clear(); 
    186  
    187 #else 
    188  
     184#else 
    189185        if (n > 0) 
    190186        { 
     
    197193 
    198194        delete [] data; 
    199  
    200195#endif 
    201196 
     
    211206 
    212207#ifndef IO_WO_XEXEC 
    213  
    214208        collectedData.buffer.assign(a_data, 0, outSize); 
    215209 
     
    227221                throw; 
    228222        } 
    229  
    230 #else 
    231  
     223#else 
    232224        _write(a_data.c_str()); 
    233  
    234225#endif 
    235226 
     
    249240 
    250241#ifndef IO_WO_XEXEC 
    251  
    252242        collectedData.buffer = a_data; 
    253243 
     
    265255                throw; 
    266256        } 
    267  
    268 #else 
    269  
     257#else 
    270258        _writeStream(a_data.c_str()); 
    271  
    272 #endif 
    273  
    274 #ifndef IO_WO_XEXEC 
    275         performXExec(postExec); 
    276  
    277         collectedData.buffer.clear(); 
    278 #endif 
    279 } 
    280  
    281 //------------------------------------------------------------------- 
    282  
     259#endif 
     260 
     261#ifndef IO_WO_XEXEC 
     262        performXExec(postExec); 
     263 
     264        collectedData.buffer.clear(); 
     265#endif 
     266} 
     267 
     268//------------------------------------------------------------------- 
     269 
Note: See TracChangeset for help on using the changeset viewer.