|
| 1 | +// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE |
| 2 | + |
| 3 | +package org.tensorflow.internal.c_api; |
| 4 | + |
| 5 | +import java.nio.*; |
| 6 | +import org.bytedeco.javacpp.*; |
| 7 | +import org.bytedeco.javacpp.annotation.*; |
| 8 | + |
| 9 | +import static org.tensorflow.internal.c_api.global.tensorflow.*; |
| 10 | + // namespace internal |
| 11 | + |
| 12 | +// LogSink support adapted from //base/logging.h |
| 13 | +// |
| 14 | +// `LogSink` is an interface which can be extended to intercept and process |
| 15 | +// all log messages. LogSink implementations must be thread-safe. A single |
| 16 | +// instance will be called from whichever thread is performing a logging |
| 17 | +// operation. |
| 18 | +@Namespace("tensorflow") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) |
| 19 | +public class TFLogEntry extends Pointer { |
| 20 | + static { Loader.load(); } |
| 21 | + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ |
| 22 | + public TFLogEntry(Pointer p) { super(p); } |
| 23 | + |
| 24 | + public TFLogEntry(int severity, @StdString @Cast({"char*", "std::string&&"}) BytePointer message) { super((Pointer)null); allocate(severity, message); } |
| 25 | + private native void allocate(int severity, @StdString @Cast({"char*", "std::string&&"}) BytePointer message); |
| 26 | + public TFLogEntry(int severity, @StdString @Cast({"char*", "std::string&&"}) String message) { super((Pointer)null); allocate(severity, message); } |
| 27 | + private native void allocate(int severity, @StdString @Cast({"char*", "std::string&&"}) String message); |
| 28 | + |
| 29 | + public TFLogEntry(int severity, @StdString @Cast({"char*", "std::string&&"}) BytePointer fname, int line, |
| 30 | + @StdString @Cast({"char*", "std::string&&"}) BytePointer message) { super((Pointer)null); allocate(severity, fname, line, message); } |
| 31 | + private native void allocate(int severity, @StdString @Cast({"char*", "std::string&&"}) BytePointer fname, int line, |
| 32 | + @StdString @Cast({"char*", "std::string&&"}) BytePointer message); |
| 33 | + public TFLogEntry(int severity, @StdString @Cast({"char*", "std::string&&"}) String fname, int line, |
| 34 | + @StdString @Cast({"char*", "std::string&&"}) String message) { super((Pointer)null); allocate(severity, fname, line, message); } |
| 35 | + private native void allocate(int severity, @StdString @Cast({"char*", "std::string&&"}) String fname, int line, |
| 36 | + @StdString @Cast({"char*", "std::string&&"}) String message); |
| 37 | + |
| 38 | + public native @Cast("absl::LogSeverity") int log_severity(); |
| 39 | + public native @StdString @Cast({"char*", "std::string&&"}) BytePointer FName(); |
| 40 | + public native int Line(); |
| 41 | + public native @StdString @Cast({"char*", "std::string&&"}) BytePointer ToString(); |
| 42 | + public native @StdString @Cast({"char*", "std::string&&"}) BytePointer text_message(); |
| 43 | +} |
0 commit comments