]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkFactory.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkFactory.cxx
index 2a633d32c7bcd6a4c37fcb4c7c0e7e8272f80765..d2d893c289472a00759da2b5dff0d0a90e1c34e2 100644 (file)
@@ -4,8 +4,8 @@ Program:   bbtk
 Module:    $RCSfile: bbtkFactory.cxx,v $
 Language:  C++
 
-Date:      $Date: 2008/01/28 09:12:49 $
-Version:   $Revision: 1.3 $
+Date:      $Date: 2008/01/30 12:14:43 $
+Version:   $Revision: 1.8 $
                                                                                 
 
 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
@@ -237,7 +237,8 @@ namespace bbtk
            <<pack.mPackage->GetVersion()
            <<" (bbtk "
            <<pack.mPackage->GetBBTKVersion()<<") "
-           <<pack.mPackage->GetAuthor()
+           <<pack.mPackage->GetAuthor() << " Keyword(s) :"
+           <<pack.mPackage->GetKeyword()
            <<std::endl);
         bbtkMessage("Output",2,pack.mPackage->GetDescription()<<std::endl);
     //===================================================================
@@ -298,7 +299,6 @@ namespace bbtk
       return;
     }
 
-
 // =================================================
 // The following structure was checked to work
 // with any type of relative/absolute path.
@@ -315,8 +315,15 @@ namespace bbtk
     // push it into vector of paths
     if (upath.length()>0)   // ------------------------------------- check user supplied location
     {
+       if (name[0] != '.' && name[0] != '/' && name[1]!= ':')
+       {
+          bbtkError("Use absolute or relative path name! ["<<name<<"] is an illegal name");
+          return;
+       }
+
       // std::string path = Utilities::ExpandLibName(upath, verbose);
-      std::string path = Utilities::ExpandLibName(name, verbose); // keep last item, here.
+       std::string path = Utilities::ExpandLibName(name, verbose); // keep last item, here.
+         
        if (path != "")
        {
           std::string p2;
@@ -539,10 +546,16 @@ namespace bbtk
     if ( i != mPackageMap.end() ) 
       {
       bbtkMessage("Help",1, "Package "<<i->first<<" ");
+      
       if (i->second.mPackage->GetVersion().length()>0)
         bbtkMessageCont("Help",1,"v" <<i->second.mPackage->GetVersion());
+        
       if (i->second.mPackage->GetAuthor().length()>0)
         bbtkMessageCont("Help",1,"- "<<i->second.mPackage->GetAuthor());
+        
+      if (i->second.mPackage->GetKeyword().length()>0)
+        bbtkMessageCont("Help",1,"- "<<i->second.mPackage->GetKeyword());        
+        
       bbtkMessageCont("Help",1,std::endl);
       bbtkIncTab("Help",1);
       bbtkMessage("Help",1,i->second.mPackage->GetDescription()<<std::endl);