Changeset 383 for branches


Ignore:
Timestamp:
02/03/14 17:32:49 (6 years ago)
Author:
jls17
Message:
  • fixed setfields SAMPLE DATA and SERVER output
Location:
branches/work_304/doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/doc/DocActionSetFieldsHelper.cpp

    r382 r383  
    261261        if (useDefaultFieldMappingTable) 
    262262        { 
    263                 GenerateDefaultMappingTable(strmSchemaDisplay, strmServer, strmQual); 
    264         } 
    265  
    266         writer << strmSchemaDisplay.str() << endl; 
     263                GenerateDefaultMappingTable(writer, strmSchemaDisplay, strmServer, strmQual); 
     264        } 
     265 
    267266        return writer; 
    268267} 
    269268 
    270 void CDocActionSetFieldsHelper::GenerateDefaultMappingTable(stringstream &strmSchemaDisplay, stringstream &strmServer, stringstream &strmQual) 
     269void CDocActionSetFieldsHelper::GenerateDefaultMappingTable(ostream &writer, stringstream &strmSchemaDisplay, stringstream &strmServer, stringstream &strmQual) 
    271270{ 
    272271        string tmpDisplayName = strmSchemaDisplay.str(); 
     
    275274 
    276275        if (this->showServerNameInOutput) 
    277                 strmSchemaDisplay << "Server: " << strmServer.str() << "<br/>" << endl; 
     276                writer << "Server: " << strmServer.str() << "<br/>" << endl; 
    278277 
    279278        if (this->showFormNameInOutput) 
    280                 strmSchemaDisplay << "From: " << arIn.LinkToSchema(tmpDisplayName, rootLevel) << "<br/>" << endl; 
     279                writer << "From: " << arIn.LinkToSchema(tmpDisplayName, rootLevel) << "<br/>" << endl; 
    281280 
    282281        //Qualification 
    283         strmSchemaDisplay << strmQual.str() << endl; 
     282        writer << strmQual.str() << endl; 
    284283 
    285284        // set field mapping 
    286         strmSchemaDisplay << "Field Mapping:"; 
     285        writer << "Field Mapping:"; 
    287286        if (setFieldsStruct.fieldList.fieldAssignList[0].fieldId == AR_LIKE_ID) 
    288287        { 
    289                 strmSchemaDisplay << " All Matching Ids<br/>"; 
     288                writer << " All Matching Ids<br/>"; 
    290289                CDocAllMatchingIdsTable allMatchingFieldsTable(attachedSchemaName, schemaNameActionIsReadingFrom, obj, CDocAllMatchingIdsTable::AMM_SETFIELDS, nAction, ifElse, rootLevel); 
    291                 allMatchingFieldsTable.ToStream(strmSchemaDisplay); 
     290                allMatchingFieldsTable.ToStream(writer); 
    292291        } 
    293292        else 
    294293        { 
    295                 strmSchemaDisplay << "<br/>" << endl; 
     294                writer << "<br/>" << endl; 
    296295                CARAssignHelper assignHelper(arIn, rootLevel, obj, attachedSchemaName, schemaNameActionIsReadingFrom); 
    297                 strmSchemaDisplay << assignHelper.SetFieldsAssignment(setFieldsStruct, nAction, ifElse); 
     296                writer << assignHelper.SetFieldsAssignment(setFieldsStruct, nAction, ifElse); 
    298297        } 
    299298} 
  • branches/work_304/doc/DocActionSetFieldsHelper.h

    r381 r383  
    5151 
    5252private: 
    53         void GenerateDefaultMappingTable(std::stringstream &strmSchemaDisplay, std::stringstream &strmServer, std::stringstream &strmQual); 
     53        void GenerateDefaultMappingTable(std::ostream &writer, std::stringstream &strmSchemaDisplay, std::stringstream &strmServer, std::stringstream &strmQual); 
    5454        string processMappingXML( TiXmlNode* pParent, string sParent, CTable &tblFieldList, string form, WebserviceMappingMode type); 
    5555        const char* GetSetFieldsTypeName(SetFieldType type); 
Note: See TracChangeset for help on using the changeset viewer.