PrintTitle

Files CCore/inc/PrintTitle.h CCore/src/PrintTitle.cpp

PrintTitle() is a Creator function to build an object of the PrintTitleType.


template <class T>
PrintTitleType<T> PrintTitle(const T &obj) { return PrintTitleType<T>(obj); }

PrintTitleType is a Helper Type, it prints a title.


template <class T>
class PrintTitleType
 {
   const T &obj;
   
  public: 
  
   explicit PrintTitleType(const T &obj_) : obj(obj_) {}
   
   using PrintOptType = TitlePrintOpt ;
   
   template <class P>
   void print(P &out,PrintOptType opt) const;
 };

Title is printed the same way as the class Title, and has the same printing options.

--- Object ---------------------------------------------------------------------

But you may use any object for it, not just only string!


Printf(Con,"#;\n",PrintTitle(12345));