Changeset 10950

Show
Ignore:
Timestamp:
11/19/11 22:45:15 (19 months ago)
Author:
jeongo9
Message:

changed code so that output file is created before ProcessData? is started

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jeongo9/components/writeBytestoFile/writeBytestoFile.cpp

    r10558 r10950  
    3131{ 
    3232    dataIn_0 = new standardInterfaces_i::realChar_p("inputBits"); 
    33     start(); 
     33    /// open destination file if not opened 
     34    destinationFileOpen = false; 
     35    if(!destinationFileOpen){ 
     36        destinationFD = open(OUTPUT_FILE, O_CREAT|O_RDWR, S_IRWXU|S_IROTH); 
     37        destinationFileOpen = true; 
     38    } 
     39    if(destinationFileOpen) 
     40        start(); 
    3441} 
    3542 
     
    107114{ 
    108115    DEBUG(3, writeBytestoFile, "initialize() invoked") 
    109         destinationFileOpen = false; 
    110116} 
    111117