From 3ca460937df262c2598d6b7aca3fe4de85024529 Mon Sep 17 00:00:00 2001
From: mnaveau <maximilien.naveau@laas.fr>
Date: Fri, 11 Mar 2016 18:09:33 +0100
Subject: [PATCH] remove the read from file class in TestNaveau Test

---
 tests/TestNaveau2015.cpp | 85 ----------------------------------------
 1 file changed, 85 deletions(-)

diff --git a/tests/TestNaveau2015.cpp b/tests/TestNaveau2015.cpp
index 6b70c404..941f4169 100644
--- a/tests/TestNaveau2015.cpp
+++ b/tests/TestNaveau2015.cpp
@@ -82,91 +82,6 @@ enum Profiles_t {
   PROFIL_NAVEAU_ONLINE_WALKING // 1
 };
 
-class IO_TextFile
-{
-
-private:
-  string namefile;
-  ifstream myfile_input;
-  ofstream myfile_output;
-
-public:
-  vector<vector<double> > data ;
-
-  int WriteOnFile_AddText(string text)
-  {
-
-    myfile_output.open(namefile.c_str(),ofstream::app);
-    if (myfile_output.is_open())
-    {
-      myfile_output << text;
-      myfile_output.close();
-      return 0;
-    }
-    else
-    {
-      cout << "Unable to open file";
-      return -1;
-    }
-  }
-
-  int WriteOnFile_DeleteAndWrite(string text)
-  {
-
-    myfile_output.open(namefile.c_str(),ofstream::out);
-    if (myfile_output.is_open())
-    {
-      myfile_output << text;
-      myfile_output.close();
-      return 0;
-    }
-    else
-    {
-      cout << "Unable to open file";
-      return -1;
-    }
-  }
-
-  bool ReadFromFile()
-  {
-    data.clear();
-    string linetmp;
-    myfile_input.open(namefile.c_str(),ifstream::in);
-    if (myfile_input.is_open())
-    {
-      while ( getline (myfile_input,linetmp) )
-      {
-        stringstream line(linetmp);
-//        cout << linetmp << endl ;
-//        cout << line.str() << endl ;
-        vector<double>tmpvector;
-        for(unsigned i=0 ; i<5 ; ++i)
-        {
-          double tmpdouble ;
-          line >> tmpdouble ;
-          tmpvector.push_back(tmpdouble);
-        }
-        data.push_back(tmpvector);
-      }
-      myfile_input.close();
-    }
-    else
-      return false ;
-
-    return true ;
-  }
-
-  IO_TextFile(string namefile_init)
-  {
-    namefile = namefile_init;
-  }
-
-  ~IO_TextFile()
-  {
-
-  }
-};
-
 // Class TestNaveau2015
 class TestNaveau2015: public TestObject
 {
-- 
GitLab