Logo Search packages:      
Sourcecode: wims version File versions  Download package

Debug.java

/*
 * This is a class used for print out debug information and can be
 * easily turned on/off.
 */
package SharpTools;
import java.io.*;

public class Debug {

    static private boolean debug = false;
    
    static void setDebug(boolean flag) {
      debug = flag;
    }
    
    static boolean isDebug() {
      return debug;
    }
    
    static void println(Object s) {
      if (debug)
          System.out.println(s.toString());
    }        
}

Generated by  Doxygen 1.6.0   Back to index