Program: bbtk
Module: $RCSfile: bbtkComplexBlackBox.cxx,v $
Language: C++
- Date: $Date: 2009/10/05 22:44:48 $
- Version: $Revision: 1.29 $
+ Date: $Date: 2009/10/16 08:52:12 $
+ Version: $Revision: 1.30 $
=========================================================================*/
/* ---------------------------------------------------------------------
#ifdef WIN32
- std::string currentexecpath( crea::System::GetDllAppPath("bbtk") +"\\dot_embedded\\");
- std::string command1 (currentexecpath + "dot -Tpng -o "
- + filename_png2 + " " + filename_dot2 );
+ std::string currentexecpath("\"\"" + crea::System::GetDllAppPath("bbtk") +"\\dot_embedded\\dot\"");
- std::string command1a(currentexecpath + "dot -T cmap -o "
- + filename_cmap2 + " " + filename_dot2 );
+ std::string command1 (currentexecpath + " -Tpng -o "
+ + filename_png2 + " " + filename_dot2 + "\"");
+
+ std::string command1a(currentexecpath + " -T cmap -o "
+ + filename_cmap2 + " " + filename_dot2 + "\"");
#else
std::string command1 ("dot -Tpng:quartz -o "
fprintf(ff,"}\n");
fclose(ff);
+ //std::cout<<"JCP bbtkComplexBlackBox.cxx execute="<<command1<<std::endl;
// 2. Executing .dot file -> png
system( command1.c_str() );
// 3. Executing .dot file -> cmap
+ std::cout<<"JCP bbtkComplexBlackBox.cxx execute="<<command1a<<std::endl;
system( command1a.c_str() );
// 4. HTML code insertion
Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2009/06/09 08:42:12 $
- Version: $Revision: 1.31 $
+ Date: $Date: 2009/10/16 08:52:12 $
+ Version: $Revision: 1.32 $
=========================================================================*/
/* ---------------------------------------------------------------------
bbtkDebugMessageInc("kernel",9,"Package<"<<GetName()<<">::CreateHtmlPage(\""
<<filename<<"\")"<<bbtkendl);
+//std::cout<<"JCP bbtkPackage.cxx void Package::CreateHtmlPage() ln 1133"<<std::endl;
+
//---------------------
// Open output file
std::ofstream s;
<< bbtk::GetVersion() << "</TD></TR>\n";
s << "</TABLE>\n";
}
-
+//std::cout<<"JCP bbtkPackage.cxx void Package::CreateHtmlPage() ln 1225"<<std::endl;
//-------------------
// Table of contents
// Black boxes list
s << "<p><TABLE cellspacing=0 cellpadding=3>\n";
DescriptorMapType::const_iterator i;
- for (i=mDescriptorMap.begin(); i!=mDescriptorMap.end(); ++i)
- {
- if ( i->second->GetKind() != BlackBoxDescriptor::STANDARD)
- continue;
+//std::cout<<"JCP bbtkPackage.cxx void Package::CreateHtmlPage() ln 1236"<<std::endl;
+ for (i=mDescriptorMap.begin(); i!=mDescriptorMap.end(); ++i) {
+ if ( i->second->GetKind() != BlackBoxDescriptor::STANDARD)
+ continue;
- std::string name = i->second->GetTypeName();
- Utilities::html_format(name);
- std::string descr = i->second->GetDescription();
- //Utilities::html_format(descr);
-
- s << "<TR>";
- s << "<TD style='vertical-align: top;'>";
- s << " <a name=\"toc_"<<name
- <<"\" href=\"#"<<name<<"\">"
- <<name<<"</a>";
- s << "</TD> ";
- s << " <TD style='vertical-align: top;'>" << descr << " </TD>";
- s << "</TR>\n";
- }
- s << "</TABLE>\n";
-
-
- s << "</ul>\n";
- s << "</div>\n";
-
- //-------------------
- // Adaptors list
- if (mAdaptorMap.size()>0)
- {
- // s << "<div class=\"contents\">\n";
- s << "<p><b> Adaptors : </b>\n";
- s << "<ul>\n";
-
- // DescriptorMapType::const_iterator i;
- s << "<p><TABLE cellspacing=0 cellpadding=3>\n";
- for (i=mDescriptorMap.begin(); i!=mDescriptorMap.end();++i)
- {
- if ( i->second->GetKind() == BlackBoxDescriptor::STANDARD)
- continue;
+ std::string name = i->second->GetTypeName();
+ Utilities::html_format(name);
+ std::string descr = i->second->GetDescription();
+ //Utilities::html_format(descr);
+//std::cout<<"JCP bbtkPackage.cxx void Package::CreateHtmlPage() ln 1246"<<std::endl;
+ s << "<TR>";
+ s << "<TD style='vertical-align: top;'>";
+ s << " <a name=\"toc_"<<name
+ <<"\" href=\"#"<<name<<"\">"
+ <<name<<"</a>";
+ s << "</TD> ";
+ s << " <TD style='vertical-align: top;'>" << descr << " </TD>";
+ s << "</TR>\n";
+ }
+ s << "</TABLE>\n";
+
+
+ s << "</ul>\n";
+ s << "</div>\n";
- std::string name = i->second->GetTypeName();
- Utilities::html_format(name);
- std::string descr = i->second->GetDescription();
+ //-------------------
+ // Adaptors list
+ if (mAdaptorMap.size()>0)
+ {
+ // s << "<div class=\"contents\">\n";
+ s << "<p><b> Adaptors : </b>\n";
+ s << "<ul>\n";
+//std::cout<<"JCP bbtkPackage.cxx void Package::CreateHtmlPage() ln 1268"<<std::endl;
+ // DescriptorMapType::const_iterator i;
+ s << "<p><TABLE cellspacing=0 cellpadding=3>\n";
+ for (i=mDescriptorMap.begin(); i!=mDescriptorMap.end();++i)
+ {
+ if ( i->second->GetKind() == BlackBoxDescriptor::STANDARD)
+ continue;
- s << "<TR>";
- s << "<TD style='vertical-align: top;'>";
- s << " <a name=\"toc_"<<name
- <<"\" href=\"#"<<name<<"\">"
- <<name<<"</a>";
- s << "</TD> ";
- s << " <TD style='vertical-align: top;'>" << descr << " </TD>";
- s << "</TR>\n";
- }
- s << "</TABLE>\n";
-
- s << "</ul>\n";
- s << "</div>\n";
- }
+ std::string name = i->second->GetTypeName();
+ Utilities::html_format(name);
+ std::string descr = i->second->GetDescription();
+
+ s << "<TR>";
+ s << "<TD style='vertical-align: top;'>";
+ s << " <a name=\"toc_"<<name
+ <<"\" href=\"#"<<name<<"\">"
+ <<name<<"</a>";
+ s << "</TD> ";
+ s << " <TD style='vertical-align: top;'>" << descr << " </TD>";
+ s << "</TR>\n";
+ }
+ s << "</TABLE>\n";
+
+ s << "</ul>\n";
+ s << "</div>\n";
+ }
// s << "<div class=\"node\">\n";
//-------------------
// Computes output directory from filename to pass it to
// BlackBoxDescriptor::InsertHtmlHelp
- std::string dir;
+ std::string dir;
- std::string::size_type slash_position = filename.find_last_of("/\\");
+ std::string::size_type slash_position = filename.find_last_of("/\\");
- if (slash_position != std::string::npos) {
- if (slash_position == 0)
- slash_position = 1;
- dir = filename.substr(0,slash_position);
- }
+ if (slash_position != std::string::npos) {
+ if (slash_position == 0)
+ slash_position = 1;
+ dir = filename.substr(0,slash_position);
+ }
- for (i=mDescriptorMap.begin();
- i!=mDescriptorMap.end();
- ++i)
- {
- i->second->InsertHtmlHelp(s,detail,level,dir,relative_link);
- }
+ for (i=mDescriptorMap.begin();
+ i!=mDescriptorMap.end();
+ ++i)
+ {
+ i->second->InsertHtmlHelp(s,detail,level,dir,relative_link);
+ }
//----------------------
// Footer