Index: XIOS/trunk/src/node/file.cpp
===================================================================
--- XIOS/trunk/src/node/file.cpp	(revision 346)
+++ XIOS/trunk/src/node/file.cpp	(revision 347)
@@ -45,10 +45,10 @@
    }
 
-   boost::shared_ptr<CFieldGroup> CFile::getVirtualFieldGroup(void) const
+   CFieldGroup* CFile::getVirtualFieldGroup(void) const
    {
       return (this->vFieldGroup);
    }
 
-   std::vector<boost::shared_ptr<CField> > CFile::getAllFields(void) const
+   std::vector<CField*> CFile::getAllFields(void) const
    {
       return (this->vFieldGroup->getAllChildren());
@@ -57,6 +57,7 @@
    //----------------------------------------------------------------
 
-   std::vector<boost::shared_ptr<CField> > CFile::getEnabledFields
-      (int default_outputlevel, int default_level, bool default_enabled)
+   std::vector<CField*> CFile::getEnabledFields(int default_outputlevel, 
+                                                int default_level,
+                                                bool default_enabled)
    {
       if (!this->enabledFields.empty())
@@ -65,8 +66,8 @@
       const int _outputlevel =
          (!output_level.isEmpty()) ? output_level.getValue() : default_outputlevel;
-      std::vector<boost::shared_ptr<CField> >::iterator it;
+      std::vector<CField*>::iterator it;
       this->enabledFields = this->getAllFields();
 
-      std::vector<boost::shared_ptr<CField> > newEnabledFields;
+      std::vector<CField*> newEnabledFields;
       
       for ( it = this->enabledFields.begin() ; it != this->enabledFields.end(); it++ )
@@ -112,5 +113,5 @@
    //----------------------------------------------------------------
 
-   void CFile::setVirtualFieldGroup(boost::shared_ptr<CFieldGroup> newVFieldGroup)
+   void CFile::setVirtualFieldGroup(CFieldGroup* newVFieldGroup)
    { 
       this->vFieldGroup = newVFieldGroup; 
@@ -127,5 +128,5 @@
    bool CFile::isSyncTime(void)
    {
-     shared_ptr<CContext> context = CContext::getCurrent() ;
+     CContext* context = CContext::getCurrent() ;
      CDate& currentDate=context->calendar->getCurrentDate() ;
      if (! sync_freq.isEmpty())
@@ -142,5 +143,5 @@
    void CFile::initFile(void)
    {
-      shared_ptr<CContext> context = CContext::getCurrent() ;
+      CContext* context = CContext::getCurrent() ;
       CDate& currentDate=context->calendar->getCurrentDate() ;
       
@@ -163,5 +164,5 @@
    bool CFile::checkSync(void)
    {
-     shared_ptr<CContext> context = CContext::getCurrent() ;
+     CContext* context = CContext::getCurrent() ;
      CDate& currentDate=context->calendar->getCurrentDate() ;
      if (! sync_freq.isEmpty())
@@ -180,5 +181,5 @@
     bool CFile::checkSplit(void)
     {
-      shared_ptr<CContext> context = CContext::getCurrent() ;
+      CContext* context = CContext::getCurrent() ;
       CDate& currentDate=context->calendar->getCurrentDate() ;
       if (! split_freq.isEmpty())
@@ -188,5 +189,5 @@
           *lastSplit=currentDate-outputFreq ;
         
-          std::vector<boost::shared_ptr<CField> >::iterator it, end = this->enabledFields.end();
+          std::vector<CField*>::iterator it, end = this->enabledFields.end();
           for (it = this->enabledFields.begin() ;it != end; it++)  (*it)->resetNStep() ;
           createHeader() ;
@@ -199,8 +200,8 @@
    void CFile::createHeader(void)
    {
-      shared_ptr<CContext> context = CContext::getCurrent() ;
+      CContext* context = CContext::getCurrent() ;
       CDate& currentDate=context->calendar->getCurrentDate() ;
       
-      std::vector<boost::shared_ptr<CField> >::iterator it, end = this->enabledFields.end();
+      std::vector<CField*>::iterator it, end = this->enabledFields.end();
 
       AllDomainEmpty=true ;
@@ -208,7 +209,7 @@
       for (it = this->enabledFields.begin() ;it != end; it++)
       {
-         boost::shared_ptr<CField> field = *it;
+         CField* field = *it;
          AllDomainEmpty&=field->grid->domain->isEmpty() ;
-         setDomain.insert(field->grid->domain.get()) ;
+         setDomain.insert(field->grid->domain) ;
       }
       nbDomain=setDomain.size() ;
@@ -260,5 +261,5 @@
          for (it = this->enabledFields.begin() ;it != end; it++)
          {
-            boost::shared_ptr<CField> field = *it;
+            CField* field = *it;
             this->data_out->writeFieldGrid(field);
          }
@@ -266,5 +267,5 @@
          for (it = this->enabledFields.begin() ;it != end; it++)
          {
-            boost::shared_ptr<CField> field = *it;
+            CField* field = *it;
             this->data_out->writeField(field);
          }
@@ -306,5 +307,5 @@
          oss << " id=\"" << this->getId() << "\" ";
       oss << SuperClassAttribute::toString() << ">" << std::endl;
-      if (this->getVirtualFieldGroup().get() != NULL)
+      if (this->getVirtualFieldGroup() != NULL)
          oss << *this->getVirtualFieldGroup() << std::endl;
       oss << "</" << CFile::GetName() << " >";
@@ -325,5 +326,5 @@
    {
       // RÃ©solution des hÃ©ritages par rÃ©fÃ©rence de chacun des champs contenus dans le fichier.
-      std::vector<boost::shared_ptr<CField> > allF = this->getAllFields();
+      std::vector<CField*> allF = this->getAllFields();
       for (unsigned int i = 0; i < allF.size(); i++)
          allF[i]->solveRefInheritance();
@@ -351,5 +352,5 @@
    {
       ENodeType genum = CFileGroup::GetType();
-      bool hasVFG = (this->getVirtualFieldGroup().get() != NULL);
+      bool hasVFG = (this->getVirtualFieldGroup() != NULL);
       SuperClass::toBinary(os);
       
@@ -381,10 +382,10 @@
    }
    
-   shared_ptr<CField> CFile::addField(const string& id)
+   CField* CFile::addField(const string& id)
    {
      return vFieldGroup->createChild(id) ;
    }
 
-   shared_ptr<CFieldGroup> CFile::addFieldGroup(const string& id)
+   CFieldGroup* CFile::addFieldGroup(const string& id)
    {
      return vFieldGroup->createChildGroup(id) ;
@@ -394,5 +395,5 @@
    void CFile::sendAddField(const string& id)
    {
-    shared_ptr<CContext> context=CContext::getCurrent() ;
+    CContext* context=CContext::getCurrent() ;
     
     if (! context->hasServer )
@@ -416,5 +417,5 @@
    void CFile::sendAddFieldGroup(const string& id)
    {
-    shared_ptr<CContext> context=CContext::getCurrent() ;
+    CContext* context=CContext::getCurrent() ;
     if (! context->hasServer )
     {
