All pastes #562738 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-12 21:52 UTC
rendered paste body
void WriteFile_i::ProcessData()
{
    DEBUG(3, WriteFile, "ProcessData() invoked")



    PortTypes::CharSequence *I_in_0(NULL);
    CORBA::UShort I_in_0_length;

    while(1)
    {
        dataIn_0->getData(I_in_0);

        I_in_0_length = I_in_0->length();

        /*insert code here to do work*/

        std::fstream fout;
        fout.open("out.txt",std::ios::out);
        char outchar;
        for (unsigned int i=0;i<I_in_0_length;i++){
        outchar=dataIn_0[i];
        fout<<outchar<<" ";
        
        }

        dataIn_0->bufferEmptied();
    }
}