{
// que l'on ai passe un root directory ou un DICOMDIR
// et quelle que soit la valeur de parseDir,
- // on a lance gdcmParser
-
- cout << "---------------------------------------------- " << Name <<endl;
-
-
+ // on a lance gdcmParser
startMethod= NULL;
progressMethod= NULL;
metaElems=NULL;
// gdcmParser already executed
-// Si on a passe un root directory, on est assuré de n'avoir rien ramené
+// if user passed a root directory, sure we didn't get anything
if( GetListEntry().begin()==GetListEntry().end() )
{
- // Si, en plus, parseDir == false, ca devrait etre une erreur
+ // if parseDir == false, it should be tagged as an error
dbg.Verbose(0, "gdcmDicomDir::gdcmDicomDir : entry list empty");
if(strlen(Name)==1 && Name[0]=='.') { // user passed '.' as Name
// we get current directory name
- char*dummy=(char*) malloc(1000); // TODO : check with Windoze
+ char*dummy=(char*) malloc(1000); // TODO : check with Windoze
getcwd(dummy,(size_t)1000);
SetFileName(dummy); // will be converted into a string
free(dummy); // no longer needed
/**
* \ingroup gdcmDicomDirImage
- * \brief
+ * \brief Constructor
* @param begin iterator (inside the gdcmParser chained list)
* on the first Header Entry (i.e Dicom Element)
* related to this "IMAGE" part
/*
* \brief Get the (directory) path from a full path file name
*/
-std::string GetPath(std::string fullName)
+std::string GetPath(std::string &fullName)
{
int pos1=fullName.rfind("/");
int pos2=fullName.rfind("\\");
/*
* \brief Get the (last) name of a full path file name
*/
-std::string GetName(std::string fullName)
+std::string GetName(std::string &fullName)
{
int fin=fullName.length()-1;
char a =fullName.c_str()[fin];
char *_cleanString(char *v);
std::string _CreateCleanString(std::string s);
-void NormalizePath(std::string &name);
-std::string GetPath(std::string fullName);
-std::string GetName(std::string fullName);
+void NormalizePath (std::string &name);
+std::string GetPath(std::string &fullName);
+std::string GetName(std::string &fullName);
//-----------------------------------------------------------------------------
#endif