Skip to content
  • Oliver Heidmann's avatar
    removed dependencies between pstream_t to process.h · 744e7c5d
    Oliver Heidmann authored
    Removed process.h include from cdo_int.h and added it to cdo.h.
    
    A-Z.cc:
        Added cdo.h to Module files that were missing it.
    
    added files: pstream_int.cc, pstream_int.h:
        created - files (pstream_int.cc/h) that contain functions used within operators and
                  allow direct usage of pstream_t (e.g. pstreamDefVlist).
    
    moves from pstream.cc to process.cc:
        func    - query_user_exit: required the processInqPrompt function causing a dependency
                    on process.h and added include for <sys/stat.h>
        call    - query_user_exit from pstream_t::pstreamOpenWritePipe(const char*, int) to
                    function cdoStreamOpenWrite(int, int)
        func    - cdoInitialize
                    required process.h
    
    process.cc:
        removed - pipe name creation from addFileInStream. The constructor of pipe_t creates the filename
        change  - processInqPrompt now calls process_t::inqPrompt() to get process_t::prompt
        added   - function process_t::inqPrompt()
        change  - function process_t::addNvals(size_t) now used in cdoCloseStream
        added   - function process_t::addNvals(size_t)
        changed - accces of pthreadScope, variable can be accessed directly without getPthreadScope()
        added   - process_t::cdoCloseStream(int)
    
    Afterburner.cc:
        changed addition of Nvals to using new process_t::addNvals(size_t)
    
    Arith.cc:
        removed - multiple // before pstreamClose() calls
    
    pstream.cc:
        added   - include for std::map
        removed - include for cdo.h         not needed anymore
        removed - include for modules.h     not needed anymore
        removed - include for process.h     not needed anymore
        added   - static variable processNum
        added   - function for setting static variable processNum
        removed - setting of pstream name in pstream_create(int, int)
        changed - return function head of avoid pstream_t::pstreamOpenReadPipe(const char*)
                  to int pstream_t::pstreamOpenReadPipe().
        removed - pstream_t::createFileLit(const char *)
                    was unused
        changed - calls of processNums() to direct acces of static variable processNums
                    this is only temporaty until timers are started and stopped by process_t
        removed - old version of pstream_t::pstreamOpenWriteFile(const char*, int)
                    was unused
        split   - pstreamCloseParentStream(pstream_t*) into pstream_t::closePipe() and pipe_t::close()
                    this removed code duplication
        split   - pstreamCloseChildStream(pstream_t*) int pstream_t::waitForPipe() and pipe_t::close()
                    this removed code duplication
        removed - const int &getPthreadScope()
                    unused
    cdo.cc;
        merged  - if statement
                    same variable used
    
    cdo.h;
        added   - include for pstream_int.h
        added   - include for process.h
    
    cdo_int.h:
        removed - include for process.h
    
    pstream_write:
        removed - function declarations that are now in pstream_int.h
    
    util.h:
        removed - function declarations that are now in process.h
    
    CdoMagicsWrapper.h:
        added   - include for cdo.h
    
    StringUtilities.h:
        added   - include for cdo.h
    
    pipe.cc:
        added   - function pipe_t::close()
                    handles releasing of pipe locks and sets pipe_t member
                    EOP true
    
    pipe.h:
        added   - declaration of function pipe_t::close()
    744e7c5d