Ejemplo n.º 1
0
 inline AzPrint(const AzOut &out) : o(NULL), dlm(NULL), name_dlm(NULL), 
                                    count(0), useDlm(true), level(0) {
   if (!out.isNull()) {
     o = out.o; 
   }
   level = out.getLevel(); 
 }
Ejemplo n.º 2
0
 inline void reset(const AzOut &out) {
   o = NULL; 
   if (!out.isNull()) {
     o = out.o; 
   }
   level = out.getLevel(); 
   dlm = NULL; 
   count = 0; 
 }
Ejemplo n.º 3
0
  /*-------------------*/
  void begin(const char *compo, const char *name, const char *desc=NULL) 
  {
    if (out.getLevel() == 0) return; 

    if (out.isNull()) return; 

    AzBytArr s(desc); 
    if (s.length() > 0) {
      s.c(" ("); s.c(name); s.c(")"); 
      AzPrint o(out); 
      o.printBegin("", " ", NULL, ind); 
      o.print("<"); o.print(s); o.print(">"); 
      o.printEnd(); 
    }
  }
Ejemplo n.º 4
0
  /*-------------------*/
  void end() {
    if (out.getLevel() == 0) return; 

    newline(); 
  }
Ejemplo n.º 5
0
 int getLevel() const {
   return out.getLevel(); 
 }
Ejemplo n.º 6
0
 void writeln_header_experimental(const char *txt) {
   if (out.getLevel() == 0) return; 
   writeln_header(txt); 
 }
Ejemplo n.º 7
0
 void item_experimental(const char *kw, const char *desc, const char *dflt=NULL) {
   if (out.getLevel() == 0) return; 
   item(kw, desc, dflt); 
 }
Ejemplo n.º 8
0
 /*-------------------*/
 void item_required_lvl(const char *kw, const char *desc, int lvl) {
   if (out.getLevel() < lvl) return; 
   _item(true, kw, desc); 
 }