bbtk Namespace Reference


Classes

class  anyplaceholder
 Abstract class used by the any class to store values. More...
class  anyholder
class  anyholder< ValueType * >
 specialization of anyholder for pointer types More...
class  any
struct  thing
 The TypeTraits which validates any type. More...
struct  integer
 The TypeTraits which validates all integer types. More...
struct  floating_point
 The TypeTraits which validates all floating point number types. More...
struct  number
 The TypeTraits which validates all numerical types. More...
class  AtomicBlackBox
 Ancestor of all user defined (concrete) black boxes which are atomic (vs. complex boxes which are made up of other (atomic or complex) boxes). More...
class  AtomicBlackBoxDescriptor
 Structure containing the description of a AtomicBlackBox input (name, description, type, functor). More...
class  AtomicBlackBoxGetFunctor
 Abstract functor of the Get accessors of the inputs and outputs of a AtomicBlackBox. More...
class  AtomicBlackBoxSetFunctor
 Abstract functor of the Set accessors of the inputs and outputs of a AtomicBlackBox. More...
class  AtomicBlackBoxTGetFunctor
 Template for concrete functors of the Get accessors of the inputs and outputs of a AtomicBlackBox (inherits from bbtk::AtomicBlackBoxGetFunctor). More...
class  AtomicBlackBoxTSetFunctor
 Template for concrete functors of the Set accessors of the inputs and outputs of a AtomicBlackBox (inherits from bbtk::AtomicBlackBoxSetFunctor). More...
class  AtomicBlackBoxTSetFunctor< UBB, T *, TACCESS * >
 Template specialization of AtomicBlackBoxTSetFunctor for pointer types. More...
class  AtomicBlackBoxInputDescriptor
 Structure containing the description of a AtomicBlackBox input (name, description, type, functor). More...
class  AtomicBlackBoxOutputDescriptor
 Structure containing the description of a AtomicBlackBox output (name, description, type, functor). More...
struct  Void
class  BlackBox
 Abstract black-box interface. More...
class  BlackBoxDescriptor
 (Abstract) Contains information on a BlackBox type (name, description, author, inputs, outputs) and is able to create an instance of it. More...
class  BlackBoxInputConnector
class  BlackBoxInputDescriptor
 Abstract descriptor of an input of a black box. More...
class  BlackBoxInputOutputDescriptor
 Abstract descriptor of an input or an output of a black box (has a name, description, type and nature). More...
class  BlackBoxOutputConnector
class  BlackBoxOutputDescriptor
 Abstract descriptor of an output of a black box (stores a name, a description and type). More...
class  ComplexBlackBox
 Abstract user defined black boxes. More...
class  ComplexBlackBoxDescriptor
 Describes a ComplexBlackBox (constituents, connections) and is able to create an instance of it. More...
class  ComplexBlackBoxInputDescriptor
 Structure containing the description of a ComplexBlackBox input (name, description, type, mapping). More...
class  ComplexBlackBoxOutputDescriptor
 Structure containing the description of a ComplexBlackBox output (name, description, type, mapping). More...
class  ConfigurationException
class  ConfigurationFile
 DDD. More...
class  Connection
 DDD. More...
class  DataInfo
 Object storing informations on a data type : includes C++ type info (std::type_info) and a string describing the "nature" of the data (what is the content of the structure). More...
class  Exception
 class Exception : generic class for throwing any exception More...
class  Executer
 class Executer: level 0 of script execution More...
class  Factory
 Can load and unload dynamic libraries containing black boxes packages and create instances of the black boxes registered in the packages loaded. More...
class  InterpreterUser
class  InterpreterError
class  Interpreter
 The bbtk language interpreter. More...
struct  QuitException
class  MessageManager
 Manages the messages displayed by bbtk. More...
class  Object
class  StaticInitTime
class  Package
 registers black boxes descriptors and is able to create instances of the black boxes registered. More...
struct  Dummy
struct  System
 System related stuff. More...
class  Transcriptor
 class Transcriptor: level 0 of script C++ translation More...
class  TypeMapping
class  Utilities
 Holds various usefull methods. More...
class  VirtualExec
 class VirtualExec: level 0 of script execution More...
class  WxApp
struct  Wx
class  WxBlackBox
 Widget black boxes. More...
class  WxBlackBoxDescriptor
class  WxBlackBoxWindow
class  WxBlackBoxDialog
class  WxBlackBoxFrame
class  WxBlackBoxWidgetEventHandler
class  WxGUICommandUser
 Abstract class which defines the callbacks invoked by WxGUICommand. More...
class  WxGUICommand
 GUI Component which provides a command input zone. More...
class  WxGUIConsole
 A console in which user can enter commands. More...
class  WxHtmlWindow
class  WxGUIHtmlBrowserUser
 Abstract class which defines the callbacks invoked by WxGUIHtmlBrowser. More...
class  WxGUIHtmlBrowser
class  WxGUIOutputMessagesUser
 Abstract class which defines the callbacks invoked by WxGUIOutputMessages. More...
class  WxGUIOutputMessages
 GUI Component which provides a command input zone. More...
class  WxGUIPackageBrowser2User
 Abstract class which defines the callbacks invoked by WxGUIPackageBrowser2. More...
class  WxGUIBlackBoxInfo
class  WxGUIBlackBoxListUser
class  WxGUIBlackBoxList
class  WxGUIPackageBrowser2
 A package browser panel. More...
class  WxGUIPackageBrowser2Window
 Browser2 in a frame. More...
class  WxGUIScriptingInterface
 A scripting interface window. More...
class  WxTextCtrlGettingKeyEvents
class  WxGUITextEditorUser
 Abstract class which defines the callbacks invoked by WxGUITextEditor. More...
class  WxGUITextEditorPage
class  WxGUITextEditor
 A text editor panel. More...
class  WxGUITextEditorWindow
 Editor in a frame. More...
class  WxStreamRedirector
 Redirects std::cout to a wxTextCtrl and optionally to printf also. More...

Functions

template<>
std::string HumanTypeName< bbtk::any< bbtk::thing > > ()
template<>
std::string HumanTypeName< bbtk::any< bbtk::thing > > (const bbtk::any< bbtk::thing > &)
void SubsBrackets (std::string &s)
std::ostream & operator<< (std::ostream &s, const DataInfo &d)
 dump in a stream
std::string bbGetObjectDescription ()
void PackageReleaseBlackBoxDescriptorInternal (Package::WeakPointer pack, const std::string &descname)
void * run_time_up_or_down_cast (const std::type_info &target_type, const std::type_info &source_type, const void *source_pointer)
void * run_time_up_or_down_cast (const std::type_info &target_type, const std::type_info &source_type, void *source_pointer)
template<class T>
std::string TypeName ()
 Template method which returns the name of a type.
template<class T>
std::string TypeName (const T &t)
 Template method which returns the name of the type of a variable.
template<>
std::string TypeName< std::type_info > (const std::type_info &t)
template<class T>
std::string HumanTypeName ()
 Template method which returns the human readable name of a type.
template<class T>
std::string HumanTypeName (const T &t)
 Template method which returns the human readable name of the type of a variable.
template<>
std::string HumanTypeName< std::type_info > (const std::type_info &t)
template<>
std::string HumanTypeName< std::string > ()
template<>
std::string HumanTypeName< std::string > (const std::string &)
template<>
std::string HumanTypeName< signed char > ()
template<>
std::string HumanTypeName< signed char > (const signed char &)
template<>
std::string HumanTypeName< signed short > ()
template<>
std::string HumanTypeName< signed short > (const signed short &)
template<>
std::string HumanTypeName< signed int > ()
template<>
std::string HumanTypeName< signed int > (const signed int &)
template<>
std::string HumanTypeName< unsigned char > ()
template<>
std::string HumanTypeName< unsigned char > (const unsigned char &)
template<>
std::string HumanTypeName< unsigned short > ()
template<>
std::string HumanTypeName< unsigned short > (const unsigned short &)
template<>
std::string HumanTypeName< unsigned int > ()
template<>
std::string HumanTypeName< unsigned int > (const unsigned int &)
template<>
std::string HumanTypeName< float > ()
template<>
std::string HumanTypeName< float > (const float &)
template<>
std::string HumanTypeName< double > ()
template<>
std::string HumanTypeName< double > (const double &)
template<>
std::string HumanTypeName< bool > ()
template<>
std::string HumanTypeName< bool > (const bool &)
template<>
std::string HumanTypeName< long > ()
template<>
std::string HumanTypeName< long > (const long &)
template<>
std::string HumanTypeName< std::vector< int8_t > > ()
template<>
std::string HumanTypeName< std::vector< int8_t > > (const std::vector< int8_t > &)
template<>
std::string HumanTypeName< std::vector< uint8_t > > ()
template<>
std::string HumanTypeName< std::vector< uint8_t > > (const std::vector< uint8_t > &)
template<>
std::string HumanTypeName< std::vector< int16_t > > ()
template<>
std::string HumanTypeName< std::vector< int16_t > > (const std::vector< int16_t > &)
template<>
std::string HumanTypeName< std::vector< uint16_t > > ()
template<>
std::string HumanTypeName< std::vector< uint16_t > > (const std::vector< uint16_t > &)
template<>
std::string HumanTypeName< std::vector< int32_t > > ()
template<>
std::string HumanTypeName< std::vector< int32_t > > (const std::vector< int32_t > &)
template<>
std::string HumanTypeName< std::vector< uint32_t > > ()
template<>
std::string HumanTypeName< std::vector< uint32_t > > (const std::vector< uint32_t > &)
template<>
std::string HumanTypeName< std::vector< long > > ()
template<>
std::string HumanTypeName< std::vector< long > > (const std::vector< long > &)
template<>
std::string HumanTypeName< std::vector< float > > ()
template<>
std::string HumanTypeName< std::vector< float > > (const std::vector< float > &)
template<>
std::string HumanTypeName< std::vector< double > > ()
template<>
std::string HumanTypeName< std::vector< double > > (const std::vector< double > &)
template<>
std::string HumanTypeName< std::vector< std::string > > ()
template<>
std::string HumanTypeName< std::vector< std::string > > (const std::vector< std::string > &)
const std::string & GetVersion ()
 IMPLEMENT_APP_NO_MAIN (WxApp)
wxString std2wx (const std::string &s)
 Conversion std::string to wxString.
std::string wx2std (const wxString &s)
 Conversion wxString to std::string.
int wxCALLBACK MyCompareFunction (long item1, long item2, long WXUNUSED(sortData))
void CleanString_0D (std::string &var)
bool GetTextOrClear (const XMLNode &node, std::string &var)
std::string GetErrorMessage (XMLResults *res, const std::string &filename)


Function Documentation

std::string bbtk::bbGetObjectDescription (  )  [inline]

Definition at line 56 of file bbtkException.h.

00056 { return(""); }

void bbtk::CleanString_0D ( std::string &  var  ) 

Definition at line 41 of file bbtkXML.h.

References i.

Referenced by GetTextOrClear().

00042         {
00043                 int i,size=var.length();
00044                 for (i=1 ; i<size ; i++ )
00045                 {
00046                         if ((var[i-1]==13) && (var[i]==10) )
00047                         {
00048                                 var[i-1]=32;  // space
00049                         } //if
00050                 } // for
00051         }

Here is the caller graph for this function:

std::string bbtk::GetErrorMessage ( XMLResults res,
const std::string &  filename 
)

Definition at line 76 of file bbtkXML.h.

References XMLResults::error, XMLNode::getError(), XMLResults::nColumn, and XMLResults::nLine.

Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite(), and bbtk::ConfigurationFile::Read().

00077   {
00078     std::ostringstream str;
00079     str << XMLNode::getError(res->error);
00080     str << " [line " << res->nLine << ", col "<<res->nColumn<<"] ";
00081     str << " file "<<filename; 
00082     return str.str();
00083   }

Here is the call graph for this function:

Here is the caller graph for this function:

bool bbtk::GetTextOrClear ( const XMLNode node,
std::string &  var 
) [inline]

Definition at line 54 of file bbtkXML.h.

References CleanString_0D(), XMLNode::getClear(), XMLNode::getText(), XMLClear::lpszValue, XMLNode::nClear(), and XMLNode::nText().

Referenced by bbtk::ConfigurationFile::Read().

00055   {
00056     if (node.nText()>0) 
00057       {
00058         var = node.getText();
00059         CleanString_0D(var);
00060         return true;
00061       }
00062     else if (node.nClear()>0) 
00063       {
00064         var = node.getClear().lpszValue;
00065         CleanString_0D(var);
00066         return true;
00067       }
00068     else 
00069       {
00070         return false;
00071       }
00072   }

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string& bbtk::GetVersion (  )  [inline]

Definition at line 131 of file bbtkSystem.h.

References BBTK_STRINGIFY_SYMBOL.

Referenced by bbtk::Package::CreateHtmlPage(), bbtk::Package::OpenDynamicLibrary(), and ProcessCmdLine::Process().

00132     {
00133       static const std::string v(BBTK_STRINGIFY_SYMBOL(BBTK_VERSION));
00134       return v;
00135     }

Here is the caller graph for this function:

template<class T>
std::string bbtk::HumanTypeName ( const T &  t  )  [inline]

Template method which returns the human readable name of the type of a variable.

Definition at line 136 of file bbtkRTTI.h.

References TypeName().

00137   { return TypeName(t); }

Here is the call graph for this function:

template<class T>
std::string bbtk::HumanTypeName (  )  [inline]

template<>
std::string bbtk::HumanTypeName< bbtk::any< bbtk::thing > > ( const bbtk::any< bbtk::thing > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< bbtk::any< bbtk::thing > > (  )  [inline]

template<>
std::string bbtk::HumanTypeName< bool > ( const bool &   )  [inline]

template<>
std::string bbtk::HumanTypeName< bool > (  )  [inline]

Definition at line 161 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< double > ( const double &   )  [inline]

template<>
std::string bbtk::HumanTypeName< double > (  )  [inline]

Definition at line 160 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< float > ( const float &   )  [inline]

template<>
std::string bbtk::HumanTypeName< float > (  )  [inline]

Definition at line 159 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< long > ( const long &   )  [inline]

template<>
std::string bbtk::HumanTypeName< long > (  )  [inline]

Definition at line 162 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< signed char > ( const signed char &   )  [inline]

template<>
std::string bbtk::HumanTypeName< signed char > (  )  [inline]

Definition at line 153 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< signed int > ( const signed int &   )  [inline]

template<>
std::string bbtk::HumanTypeName< signed int > (  )  [inline]

Definition at line 155 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< signed short > ( const signed short &   )  [inline]

template<>
std::string bbtk::HumanTypeName< signed short > (  )  [inline]

Definition at line 154 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::string > ( const std::string &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::string > (  )  [inline]

template<>
std::string bbtk::HumanTypeName< std::type_info > ( const std::type_info &  t  )  [inline]

Specialisation of TypeName when the type passed is already a type_info : The user does not want to know the type of the type_info class but of the class whose type_info is passed !

template<>
std::string bbtk::HumanTypeName< std::vector< double > > ( const std::vector< double > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< double > > (  )  [inline]

Definition at line 180 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< float > > ( const std::vector< float > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< float > > (  )  [inline]

Definition at line 179 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< int16_t > > ( const std::vector< int16_t > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< int16_t > > (  )  [inline]

Definition at line 174 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< int32_t > > ( const std::vector< int32_t > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< int32_t > > (  )  [inline]

Definition at line 176 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< int8_t > > ( const std::vector< int8_t > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< int8_t > > (  )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< long > > ( const std::vector< long > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< long > > (  )  [inline]

Definition at line 178 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< std::string > > ( const std::vector< std::string > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< std::string > > (  )  [inline]

Definition at line 181 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< uint16_t > > ( const std::vector< uint16_t > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< uint16_t > > (  )  [inline]

Definition at line 175 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< uint32_t > > ( const std::vector< uint32_t > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< uint32_t > > (  )  [inline]

Definition at line 177 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< std::vector< uint8_t > > ( const std::vector< uint8_t > &   )  [inline]

template<>
std::string bbtk::HumanTypeName< std::vector< uint8_t > > (  )  [inline]

Definition at line 173 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< unsigned char > ( const unsigned char &   )  [inline]

template<>
std::string bbtk::HumanTypeName< unsigned char > (  )  [inline]

Definition at line 156 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< unsigned int > ( const unsigned int &   )  [inline]

template<>
std::string bbtk::HumanTypeName< unsigned int > (  )  [inline]

Definition at line 158 of file bbtkRTTI.h.

template<>
std::string bbtk::HumanTypeName< unsigned short > ( const unsigned short &   )  [inline]

template<>
std::string bbtk::HumanTypeName< unsigned short > (  )  [inline]

Definition at line 157 of file bbtkRTTI.h.

bbtk::IMPLEMENT_APP_NO_MAIN ( WxApp   ) 

int wxCALLBACK bbtk::MyCompareFunction ( long  item1,
long  item2,
long   WXUNUSEDsortData 
)

Definition at line 101 of file bbtkWxGUIPackageBrowser2.cxx.

00102   {
00103     // inverse the order
00104     if (item1 < item2)
00105       return -1;
00106     if (item1 > item2)
00107       return 1;
00108     
00109     return 0;
00110   }

std::ostream& bbtk::operator<< ( std::ostream &  s,
const DataInfo &  d 
) [inline]

dump in a stream

Definition at line 90 of file bbtkData.h.

References bbtk::DataInfo::GetNature(), bbtk::DataInfo::GetType(), and TypeName().

00091   {
00092     s << "<" << TypeName(d.GetType()) << "("<< d.GetNature()<<")>";
00093     return s;
00094   }

Here is the call graph for this function:

void bbtk::PackageReleaseBlackBoxDescriptorInternal ( Package::WeakPointer  pack,
const std::string &  descname 
)

Definition at line 124 of file bbtkPackage.cxx.

References bbtkDebugMessage, and bbtkendl.

Referenced by bbtk::Package::Release(), and bbtk::Package::ReleaseBlackBoxDescriptor().

00126   {
00127     // Try to release descriptor
00128     std::string packname = pack.lock()->GetName();
00129 
00130     bbtkDebugMessage("package",5,"--- Releasing descriptor '"
00131                      <<packname<<"::"<<descname<<"'"<<bbtkendl);
00132 
00133 
00134     Package::BlackBoxMapType::iterator desc = 
00135       pack.lock()->GetBlackBoxMap().find(descname);
00136     if (desc ==  pack.lock()->GetBlackBoxMap().end())
00137       {
00138         bbtkDebugMessage("package",5,
00139                          "    Descriptor has already been released"
00140                          <<bbtkendl);
00141         return;
00142       }
00143     //    bbtkDebugMessage("package",3,
00144     //               "    Trying unreferencing it ... "<<std::endl);
00145     BlackBoxDescriptor::WeakPointer pdesc = desc->second;
00146     desc->second.reset();
00147     // if it is dead : remove it 
00148     if (pdesc.expired()) 
00149       {
00150         bbtkDebugMessage("package",2," ==> '"<<packname<<"::"<<descname<<"' Descriptor expired"<<bbtkendl);
00151         if (pack.expired()) 
00152           {
00153             bbtkDebugMessage("package",2,
00154                              "     ... and caused its package death"
00155                              <<bbtkendl);
00156             return;
00157           }
00158         desc = pack.lock()->GetBlackBoxMap().find(descname);
00159         if (desc !=  pack.lock()->GetBlackBoxMap().end())
00160           pack.lock()->GetBlackBoxMap().erase(desc);
00161       }
00162     else 
00163       {
00164         bbtkDebugMessage("package",5,"    ... Descriptor still alive ("
00165                          <<pdesc.use_count()<<" refs)"
00166                          <<bbtkendl);
00167         pack.lock()->GetBlackBoxMap()[descname] = pdesc.lock();
00168       }
00169   }

Here is the caller graph for this function:

void* bbtk::run_time_up_or_down_cast ( const std::type_info &  target_type,
const std::type_info &  source_type,
void *  source_pointer 
)

Definition at line 58 of file bbtkRTTI.cxx.

References bbtkDebugMessage, bbtkWarning, and TypeName().

00062   {
00063     bbtkDebugMessage("Data",5,
00064                      "run_time_up_or_down_cast : Casting pointer to '" 
00065                      << TypeName(typeid(*(Dummy*)source_pointer)) 
00066                      << "' from " << TypeName(source_type) 
00067                      << " to " << TypeName(target_type) << std::endl);
00068 
00069     void* target_pointer = 0;
00070 #if __GNUC__ > 3 ||                                     \
00071   (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 ||              \
00072                      (__GNUC_MINOR__ == 1 &&            \
00073                       __GNUC_PATCHLEVEL__ > 0)))
00074     
00075     const abi::__class_type_info* targetTI = 
00076       (const abi::__class_type_info *)( &(target_type));
00077     
00078     bbtkDebugMessage("Data",7," * source   = "<<source_pointer<<std::endl);
00079 
00080     void* tmp = source_pointer;
00081     if (source_type.__do_upcast(targetTI,&tmp)) 
00082       {
00083         target_pointer = tmp;
00084       }
00085     else 
00086       {
00087         bbtkDebugMessage("Data",7,
00088                          " * upcast failed : trying dynamic down cast"
00089                          <<std::endl);
00090         const abi::__class_type_info* sourceTI = 
00091           (const abi::__class_type_info *)( &(source_type));
00092         
00093         
00094         target_pointer = abi::__dynamic_cast(source_pointer, 
00095                                              sourceTI, 
00096                                              targetTI, 
00097                                              -1);   
00098       }
00099     
00100     bbtkDebugMessage("Data",7," * target   = "<<target_pointer<<std::endl);
00101     
00102 #else
00103     bbtkWarning("run_time_up_or_down_cast not impl. on Win : to do");
00104     // target_pointer = __RTDynamicCast(source_pointer, 0, source_type, target_type, 0);
00105 #endif
00106     return target_pointer;
00107     
00108   }

Here is the call graph for this function:

void* bbtk::run_time_up_or_down_cast ( const std::type_info &  target_type,
const std::type_info &  source_type,
const void *  source_pointer 
)

Definition at line 48 of file bbtkRTTI.cxx.

Referenced by bbtk::anyholder< ValueType * >::get_pointer_to().

00052  {
00053    return run_time_up_or_down_cast(target_type,
00054                                    source_type,
00055                                    const_cast<void*>(source_pointer));
00056  }

Here is the caller graph for this function:

wxString bbtk::std2wx ( const std::string &  s  )  [inline]

void bbtk::SubsBrackets ( std::string &  s  ) 

Definition at line 854 of file bbtkBlackBox.cxx.

Referenced by bbtk::BlackBox::bbWriteDotFileBlackBox().

00855   {
00856     //   std::cout << "BEFORE=["<<s<<"]"<<std::endl;
00857     std::string ss("<");
00858     std::string::size_type pos = 0;
00859     pos = s.find(ss,0);
00860     char* cr = "[";
00861     while ( pos != std::string::npos )
00862       {
00863         //      std::cout << "*** find one "<<std::endl;
00864         s.replace(pos,1,cr,1);
00865         pos = s.find(ss, pos);
00866       } 
00867     ss = ">";
00868     pos = 0;
00869     pos = s.find(ss,0);
00870     cr = "]";
00871     while ( pos != std::string::npos )
00872       {
00873         //      std::cout << "*** find one "<<std::endl;
00874         s.replace(pos,1,cr,1);
00875         pos = s.find(ss, pos);
00876       } 
00877     ss = ",";
00878     pos = 0;
00879     pos = s.find(ss,0);
00880     cr = "-";
00881     while ( pos != std::string::npos )
00882       {
00883         //      std::cout << "*** find one "<<std::endl;
00884         s.replace(pos,1,cr,1);
00885         pos = s.find(ss, pos);
00886       }     //    std::cout << "AFTER=["<<s<<"]"<<std::endl;
00887   }

Here is the caller graph for this function:

template<class T>
std::string bbtk::TypeName ( const T &  t  )  [inline]

Template method which returns the name of the type of a variable.

Definition at line 121 of file bbtkRTTI.h.

References BBTK_DEMANGLE_TYPE_NAME.

00122   { return BBTK_DEMANGLE_TYPE_NAME(typeid(t).name()); }

template<class T>
std::string bbtk::TypeName (  )  [inline]

Template method which returns the name of a type.

Definition at line 117 of file bbtkRTTI.h.

References BBTK_DEMANGLE_TYPE_NAME.

Referenced by bbtk::Executer::Get(), bbtk::ComplexBlackBoxOutputDescriptor::GetTypeName(), bbtk::ComplexBlackBoxInputDescriptor::GetTypeName(), HumanTypeName(), operator<<(), run_time_up_or_down_cast(), and bbtk::Executer::Set().

00118   { return BBTK_DEMANGLE_TYPE_NAME(typeid(T).name()); }

Here is the caller graph for this function:

template<>
std::string bbtk::TypeName< std::type_info > ( const std::type_info &  t  )  [inline]

Specialisation of TypeName when the type passed is already a type_info : The user does not want to know the type of the type_info class but of the class whose type_info is passed !

std::string bbtk::wx2std ( const wxString &  s  )  [inline]

Conversion wxString to std::string.

Definition at line 194 of file bbtkWx.h.

Referenced by bbtk::Executer::DefineInput(), bbtk::WxGUIHtmlBrowser::GetCurrentPage(), bbtk::WxGUITextEditorPage::GetText(), bbtk::WxGUIPackageBrowser2::IsVisible(), bbtk::WxGUICommand::OnBtnGo(), bbtk::WxGUICommand::OnBtnInclude(), bbtk::WxGUICommand::OnCommandEnter(), bbtk::WxGUIHtmlBrowser::OnLinkClicked(), bbtk::WxGUIScriptingInterface::OnMenuPlugPackage(), bbtk::WxGUIScriptingInterface::OnMenuRegeneratePackageDoc(), bbtk::WxGUITextEditor::Open(), ProcessCmdLine::Process(), bbtk::WxGUITextEditorPage::Save(), and bbtk::WxGUIScriptingInterface::SavePerspective().

00194                                             {
00195     std::string s2;
00196     if(s.wxString::IsAscii()) {
00197       s2=s.wxString::ToAscii();
00198     } else {
00199       const wxWX2MBbuf tmp_buf = wxConvCurrent->cWX2MB(s);
00200       const char *tmp_str = (const char*) tmp_buf;
00201       s2=std::string(tmp_str, strlen(tmp_str));
00202     }
00203     return s2;
00204   }

Here is the caller graph for this function:


Generated on Wed Nov 12 11:38:24 2008 for BBTK by  doxygen 1.5.6