+///////////////////////////////////////////////////////////////////////////
+/*
+ * \brief Get the (last) name of a full path file name
+ */
+std::string GetName(std::string &fullName)
+{
+ int fin=fullName.length()-1;
+ char a =fullName.c_str()[fin];
+ if (a == '/' || a == '\\') {
+ fin--;
+ }
+ int deb;
+ for (int i=fin;i!=0;i--) {
+ if (fullName.c_str()[i] == '/' || fullName.c_str()[i] == '\\')
+ break;
+ deb = i;
+ }
+
+ std::string lastName;
+ for (int j=deb;j<fin+1;j++)
+ lastName=lastName+fullName.c_str()[j];
+
+ return(lastName);
+}