- command2=command2+filename_html;
- page = filename_html;
- // 1. Generate Html Diagram
- std::ofstream s;
- s.open(filename_html.c_str());
- if (s.good())
- {
- s << "<html><head><title>BBtk graph diagram</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head>\n";
- s << "<body bgcolor=\"#FFFFFF\" text=\"#000000\"> \n\n";
- if ( blackbox->bbGetName()=="workspacePrototype" )
- {
- s << "<center>Current workspace</center>";
- } else {
- s << "<center>" << blackbox->bbGetName()<< "</center>";
- }
-
- blackbox->bbInsertHTMLGraph( s, detail, level, true, directory, false );
- s << "</body></html>\n";
- }
- s.close();
-
- // 2. Starting Browser
- if (system_display) system( command2.c_str() );
- }
- else
- {
- bbtkMessageInc("Help",1,"No black box: \""
- <<nameblackbox<<"\" " <<std::endl);
-
- }
- return page;
- }
-
-void Transcriptor::ShowRelations(const std::string &nameblackbox, const std::string &detailStr, const std::string &levelStr)
- {
- bool found=false;
-
- int detail = atoi(detailStr.c_str());
- int level = atoi(levelStr.c_str());
- BlackBox* blackbox=NULL;
- if (nameblackbox.compare(".")==0)
- {
- blackbox=Current()->GetPrototype();
- } else {
- blackbox = Current()->GetPrototype()->bbFindBlackBox(nameblackbox);
- }
-
- if (blackbox)
- {
- found=true;
- blackbox->bbShowRelations(blackbox,detail,level); //,mFactory);
- }
-
- if (!found)
- {
- bbtkError("Blackbox Name not found.. <" <<nameblackbox<<">");
- }
- }
-
- /*
- /// sets the level of message
- void Transcriptor::Message(const std::string &kind,
- const std::string& level)
- {
- int l;
- sscanf(level.c_str(),"%d",&l);
- bbtk::MessageManager::SetMessageLevel(kind,l);
- }
- */
+ //==========================================================================
+size_t Transcriptor::GetObjectSize() const
+{
+ size_t s = Superclass::GetObjectSize();
+ s += Transcriptor::GetObjectInternalSize();
+ return s;
+ }
+ //==========================================================================
+ //==========================================================================
+size_t Transcriptor::GetObjectInternalSize() const
+{
+ size_t s = sizeof(Transcriptor);
+ return s;
+ }
+ //==========================================================================
+ //==========================================================================
+ size_t Transcriptor::GetObjectRecursiveSize() const
+ {
+ size_t s = Superclass::GetObjectRecursiveSize();
+ s += Transcriptor::GetObjectInternalSize();
+ return s;
+ }
+ //==========================================================================