Itasca C++ Interface
Loading...
Searching...
No Matches
ikerneloutput.h
1#pragma once
2
3namespace itasca {
4 class ITextOutput;
5 class IParse;
6
13 public:
28 virtual void information(const QString &s)=0;
31 virtual void warning(const QString &s,uint level,int line,const QString &file)=0;
33 virtual void error(const QString &s,int line,const QString &file,bool expected)=0;
38 virtual void progress(int per,const QString &message)=0;
40 virtual void waitNotice(bool show,const QString &message)=0;
42 virtual void interfaceGuiCommand(const itasca::IParse &par)=0;
44 virtual void interfacePlotCommand(const itasca::IParse &par)=0;
48 virtual void informationOn(bool b)=0;
49 virtual bool informationOn() const=0;
51 virtual void warningOn(bool b)=0;
52 virtual bool warningOn() const=0;
54 virtual void globalPaginationOn(bool b)=0;
57 virtual void cyclingOutput(uint32 mode,const StringList &list)=0;
58 virtual void logEvent(const string &str)=0;
60 virtual void displayHelpFile(const string &file, const string &pagePath,uint32 command=0, const string &windowName = "Mainwin")=0;
62 //virtual void addAlternateDataFilePrefix(const QString &pref)=0;
63
64 //virtual bool acceptRedirect() const=0;
65 //virtual void setRedirectOutput(IKernelOutput * ko)=0;
66 };
67} // /namespace itasca
68// EOF
Definition basestring.h:89
Definition expected.h:25
Interface describing ALL output support the kernel needs to send information to whatever interface is...
Definition ikerneloutput.h:12
virtual void warning(const QString &s, uint level, int line, const QString &file)=0
virtual void warningOn(bool b)=0
Indicates that output 'warning' mode is on.
virtual void waitNotice(bool show, const QString &message)=0
Displays wait message. If show is false, message is cleared from output device. Function does not blo...
virtual void interfacePlotCommand(const itasca::IParse &par)=0
Parses a PLOT command. May throw any exception. Not supported in console interface.
virtual void progress(int per, const QString &message)=0
virtual void cyclingOutput(uint32 mode, const StringList &list)=0
virtual void interfaceGuiCommand(const itasca::IParse &par)=0
Parses a GUI command. May throw any exception. Not supported in console interface.
virtual void globalPaginationOn(bool b)=0
Sets output global pagination ON/OFF.
virtual void informationOn(bool b)=0
Indicates that output 'information' mode is on.
virtual void error(const QString &s, int line, const QString &file, bool expected)=0
Used to output error messages - called from Kernel after catching exception. May throw a quit excepti...
virtual ITextOutput * getITextOutput()=0
Returns a pointer to ITextOutput.
virtual void displayHelpFile(const string &file, const string &pagePath, uint32 command=0, const string &windowName="Mainwin")=0
Display the contents of a help file.
CycleOutputMode
Definition ikerneloutput.h:21
@ InfoCycleOutputMode
Info strings passed, cycling started.
Definition ikerneloutput.h:21
@ DataCycleOutputMode
Data strings passed, cycling ongoing.
Definition ikerneloutput.h:23
@ HeaderCycleOutputMode
Header strings passed, cycling ongoing.
Definition ikerneloutput.h:22
@ Data2CycleOutputMode
Second row of data strings passed.
Definition ikerneloutput.h:24
@ CloseCycleOutputMode
Cycling stopped, strings ignored.
Definition ikerneloutput.h:25
virtual void information(const QString &s)=0
Used to output helpful information messages. May throw a quit exception or interrupt exception.
Interface to the main command processing class.
Definition iparse.h:50
Provides a interface for simple writing of text.
Definition itextoutput.h:13
namespace Itasca
Definition basememory.cpp:10