Z3
src/api/java/Log.java
Go to the documentation of this file.
00001 
00018 package com.microsoft.z3;
00019 
00026 public final class Log
00027 {
00028     private static boolean m_is_open = false;
00029 
00036     public static boolean open(String filename)
00037     {
00038         m_is_open = true;
00039         return Native.openLog(filename) == 1;
00040     }
00041 
00045     public static void close()
00046     {
00047         m_is_open = false;
00048         Native.closeLog();
00049     }
00050 
00056     public static void append(String s)
00057     {
00058         if (!m_is_open)
00059             throw new Z3Exception("Log cannot be closed.");
00060         Native.appendLog(s);
00061     }
00062 
00068     public static boolean isOpen()
00069     {
00070         return m_is_open;
00071     }
00072 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines