52 #ifndef __PCL_Console_h
53 #define __PCL_Console_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
377 : m_handle( x.m_handle )
378 , m_thread( x.m_thread )
380 x.m_handle = x.m_thread =
nullptr;
396 m_handle = x.m_handle;
397 m_thread = x.m_thread;
398 x.m_handle = x.m_thread =
nullptr;
439 Write(
"\x1b[32m" + s +
"\x1b[39m" );
450 WriteLn(
"\x1b[32m" + s +
"\x1b[39m" );
462 Write(
"\x1b[35m" + s +
"\x1b[39m" );
473 WriteLn(
"\x1b[35m" + s +
"\x1b[39m" );
485 Write(
"\x1b[31m" + s +
"\x1b[39m" );
496 WriteLn(
"\x1b[31m" + s +
"\x1b[39m" );
646 return Show( !hide );
666 void ExecuteCommand(
const String& command );
751 void* m_handle =
nullptr;
755 void* m_thread =
nullptr;
769 template <
typename T>
A high-level interface to a PixInsight processing console.
bool AbortEnabled() const
void WriteLn(const String &s)
void CriticalLn(const String &s)
void ExecuteScriptOn(const View &view, const String &filePath, const StringKeyValueList &arguments=StringKeyValueList())
void Warning(const String &s)
bool Show(bool show=true)
void ExecuteScriptGlobal(const String &filePath, const StringKeyValueList &arguments=StringKeyValueList())
void ExecuteScript(const String &filePath, const StringKeyValueList &arguments=StringKeyValueList())
void Write(const String &s)
bool IsCurrentThreadConsole() const
bool AbortRequested() const
void Critical(const String &s)
void Note(const String &s)
void NoteLn(const String &s)
Console(const Console &)=delete
bool Hide(bool hide=true)
void WarningLn(const String &s)
High-level interface to a PixInsight view object.
Array< T, A > & operator<<(Array< T, A > &x, const V &v)
Console & operator>>(Console &o, char &c)