Skip to content
Snippets Groups Projects
Select Git revision
  • f5b330a99964bc0e9633dfe4985726fca93562e7
  • master default protected
  • enh/surfprc
  • ukbiobankv1.5
  • newnew
  • cvsHEAD protected
  • fsl-5_branch
  • osx-109-branch
  • oldOptionsFilm
  • originalSurfaceFilm
  • universal_branch
  • fsl-3_3-branch
  • fsl-3_2
  • release-branch
  • 2111.1
  • 2111.0
  • 2007.0
  • 2004.0
  • cvsFINAL protected
  • FSL6-0-0
  • newStable
  • FinalFive
  • fsl-5_0_11
  • stable
  • fsl-5_0_10
  • fsl-5_0_9
  • fsl-5_0_8
  • fsl-5_0_7
  • fsl-5_0_5
  • fsl-5_0_6
  • root-osx-109-branch
  • newnew_branchpoint
  • fsl-5_0_0
  • fsl-5_0_1
34 results

glim.h

Blame
  • Log.cc 926 B
    /*  Log.cc
    
        Mark Woolrich, FMRIB Image Analysis Group
    
        Copyright (C) 1999-2000 University of Oxford  */
    
    /*  CCOPYRIGHT  */
    
    #include "Log.h"
    
    using namespace UTILS;
    namespace UTILS {
    
      Log* Log::logger = NULL;
      
      void Log::establishDir(const string& name) 
        {
          dir = name;
          
          // make directory to place results into:
          // keep adding "+" until directory is made:
          while(true)
    	{
    	  int ret = system(("mkdir "+ dir).c_str());
    	  if(ret == 0)
    	    {
    	      break;
    	    }
    	  dir = dir + "+";
    	}
          
          cerr << "Results are in directory " + dir << endl;
    
          // setup logfile
          logfileout.open((dir + "/" + logfilename).c_str(), ios::out);
        }
    
    void Log::setDir(const string& name) 
        {
          dir = name;
          
          cerr << "Results are in directory " + dir << endl;
    
          // setup logfile
          logfileout.open((dir + "/" + logfilename).c_str(), ios::out);
        }
    }