Program: gdcm
Module: $RCSfile: gdcmArgMgr.cxx,v $
Language: C++
- Date: $Date: 2005/07/20 13:29:42 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2005/07/30 18:18:44 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/**
* \brief checks if a parameter exists in the command line
* @param param label name
- * @return 0 if label is not found
- * else, returns the number of the spot it was found last time.
+ * @return false if label is not found
+ * true if label is not found
*/
-int ArgMgr::ArgMgrDefined( const char *param )
+bool ArgMgr::ArgMgrDefined( const char *param )
{
int i, trouve ;
char *temp;
if ( (!ArgUsed[j])&&(!strcmp(ArgLab[i],ArgLab[j])) )
ArgUsed[j] = true ;
}
- return i ;
+ return true ;
}
}
return false ;
Program: gdcm
Module: $RCSfile: gdcmArgMgr.h,v $
Language: C++
- Date: $Date: 2005/07/20 13:29:42 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2005/07/30 18:18:44 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
ArgMgr(int argc, char **argv);
~ArgMgr();
- int ArgMgrDefined (const char *param); // Checks if Param is defined
+ bool ArgMgrDefined (const char *param); // Checks if Param is defined
char *ArgMgrValue (const char *param); // Returns Param value
char *ArgMgrUnused (void); // Returns a never used arg.
int ArgMgrSave (char *); // Save of parameters out