public class DB
extends java.lang.Object
Constructor and Description |
---|
DB()
Default constructor.
|
DB(int v)
Constructs a DB object given a verbosity level.
|
DB(int v,
java.lang.String fName)
Constructs a DB object given a verbosity level and filename for output.
|
Modifier and Type | Method and Description |
---|---|
static void |
close()
Closes the output file.
|
void |
closeInst()
Closes the output file for an instance of the class.
|
static int |
getVerbosity()
Returns the current verbosity level.
|
int |
getVerbosityInst()
Returns the current verbosity level for an instance of the class.
|
static void |
printIfVerbose(java.lang.Object o,
int vLevel)
Prints the object if vLevel is less than or equal to the specified
verbosity.
|
void |
printIfVerboseInst(java.lang.Object o,
int vLevel)
Prints the object if vLevel is less than or equal to the specified
verbosity.
|
static void |
setOutputFile(java.lang.String fName)
Sets the output filename.
|
void |
setOutputFileInst(java.lang.String fName)
Sets the output filename for an instance of the class.
|
static void |
setVerbosity(int v)
Sets the verbosity level.
|
void |
setVerbosityInst(int v)
Sets the verbosity level for an instance of the class.
|
public DB()
public DB(int v)
public DB(int v, java.lang.String fName)
public static void printIfVerbose(java.lang.Object o, int vLevel)
public void printIfVerboseInst(java.lang.Object o, int vLevel)
public static void setVerbosity(int v)
public void setVerbosityInst(int v)
public static void setOutputFile(java.lang.String fName)
public void setOutputFileInst(java.lang.String fName)
public static int getVerbosity()
public int getVerbosityInst()
public static void close()
public void closeInst()