Program: gdcm
Module: $RCSfile: gdcmDictSet.cxx,v $
Language: C++
- Date: $Date: 2005/02/02 10:02:16 $
- Version: $Revision: 1.58 $
+ Date: $Date: 2005/04/05 10:56:25 $
+ Version: $Revision: 1.62 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
return entry;
}
-/**
- * \brief Obtain from the GDCM_DICT_PATH environnement variable the
- * path to directory containing the dictionaries. When
- * the environnement variable is absent the path is defaulted
- * to "../Dicts/".
- * @return path to directory containing the dictionaries
- */
-std::string DictSet::BuildDictPath()
-{
- std::string resultPath;
- const char *envPath = 0;
- envPath = getenv("GDCM_DICT_PATH");
-
- if (envPath && (strlen(envPath) != 0))
- {
- resultPath = envPath;
- if ( resultPath[resultPath.length()-1] != '/' )
- {
- resultPath += '/';
- }
- gdcmVerboseMacro( "Dictionary path set from environnement");
- }
- else
- {
- resultPath = PUB_DICT_PATH;
- }
-
- return resultPath;
-}
-
/**
* \brief Get the first entry while visiting the DictSet
* \return The first Dict if found, otherwhise NULL
return NULL;
}
+/**
+ * \brief Obtain from the GDCM_DICT_PATH environnement variable the
+ * path to directory containing the dictionaries. When
+ * the environnement variable is absent the path is defaulted
+ * to "../Dicts/".
+ * @return path to directory containing the dictionaries
+ */
+std::string DictSet::BuildDictPath()
+{
+ std::string resultPath;
+ const char *envPath;
+ envPath = getenv("GDCM_DICT_PATH");
+
+ if (envPath && (strlen(envPath) != 0))
+ {
+ resultPath = envPath;
+ gdcmWarningMacro( "Dictionary path set from environnement");
+ }
+ else
+ {
+ resultPath = PUB_DICT_PATH;
+ }
+ if ( resultPath[resultPath.length()-1] != '/' )
+ {
+ resultPath += '/';
+ }
+
+ return resultPath;
+}
+
//-----------------------------------------------------------------------------
// Protected
/**