|
@@ -332,6 +332,19 @@ null() {
|
|
|
return *(ptr()->_null_ostream_ptr);
|
|
return *(ptr()->_null_ostream_ptr);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: Notify::write_string
|
|
|
|
|
+// Access: Public, Static
|
|
|
|
|
+// Description: A convenient way for scripting languages, which may
|
|
|
|
|
+// know nothing about ostreams, to write to Notify.
|
|
|
|
|
+// This writes a single string, followed by an implicit
|
|
|
|
|
+// newline, to the Notify output stream.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+void Notify::
|
|
|
|
|
+write_string(const string &str) {
|
|
|
|
|
+ out() << str << "\n";
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: Notify::ptr
|
|
// Function: Notify::ptr
|
|
|
// Access: Public, Static
|
|
// Access: Public, Static
|