Ignore:
Timestamp:
05/06/11 10:15:47 (13 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/xmlio/data_output.cpp

    r152 r189  
    1111      CDataOutput::~CDataOutput(void) 
    1212      { /* Ne rien faire de plus */ } 
     13 
     14      //---------------------------------------------------------------- 
    1315 
    1416      void CDataOutput::writeGrid 
     
    3234      } 
    3335 
     36      //---------------------------------------------------------------- 
     37 
    3438      void CDataOutput::writeFile 
    3539         (const boost::shared_ptr<tree::CFile>  file) 
     
    3741         this->writeFile_(file); 
    3842      } 
     43 
     44      //---------------------------------------------------------------- 
    3945 
    4046      void CDataOutput::writeGrid 
     
    4652      } 
    4753 
     54      //---------------------------------------------------------------- 
     55 
    4856      void CDataOutput::writeGrid 
    4957         (const boost::shared_ptr<tree::CDomain> domain) 
     
    5159         this->writeDomain_(domain); 
    5260      } 
     61 
     62      //---------------------------------------------------------------- 
    5363 
    5464      void CDataOutput::writeField 
     
    5868      } 
    5969 
     70      //---------------------------------------------------------------- 
     71 
    6072      void CDataOutput::writeFieldGrid 
    6173         (const boost::shared_ptr<tree::CField> field) 
     
    6375         this->writeGrid(field->getRelGrid()); 
    6476      } 
     77       
     78      //---------------------------------------------------------------- 
     79       
     80      void CDataOutput::writeFieldData(const boost::shared_ptr<tree::CField> field) 
     81      { 
     82         boost::shared_ptr<CGrid> grid = 
     83            CObjectFactory::GetObject<CGrid>(field->grid_ref.getValue()); 
     84         boost::shared_ptr<CDomain> domain = 
     85            CObjectFactory::GetObject<CDomain>(grid->domain_ref.getValue()); 
     86             
     87         if (domain->isEmpty()) return; 
     88         this->writeFieldData_(field); 
     89      } 
     90       
     91      ///---------------------------------------------------------------- 
    6592 
    6693   } // namespace io 
Note: See TracChangeset for help on using the changeset viewer.