FACT++  1.0
string StateMachineDimControl::Line ( const std::string &  txt,
char  fill 
)
private

Definition at line 20 of file StateMachineDimControl.cc.

21 {
22  const int n = (55-txt.length())/2;
23 
24  ostringstream out;
25  out << setfill(fill);
26  out << setw(n) << fill << ' ';
27  out << txt;
28  out << ' ' << setw(n) << fill;
29 
30  if (2*n+txt.length()+2 != 57)
31  out << fill;
32 
33  return out.str();
34 }