Logo Search packages:      
Sourcecode: gdcm version File versions

const char * gdcm::Testing::GetTempDirectory ( const char *  subdir = 0  )  [static]

NOT THREAD SAFE Returns the temp directory as used in testing needing to output data:

Definition at line 181 of file gdcmTesting.cxx.

Referenced by GetTempFilename().

{
  if( !subdir ) return GDCM_TEMP_DIRECTORY;
  // else
  static std::string buffer;
  std::string tmpdir = GDCM_TEMP_DIRECTORY;
  tmpdir += "/";
  tmpdir += subdir;
  buffer = tmpdir;
  return buffer.c_str();
}


Generated by  Doxygen 1.6.0   Back to index