FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
F90Msg Class Reference

A sub-class of FFaMsg that passes the list-messages to Fortran. More...

Inheritance diagram for F90Msg:
Inheritance graph
[legend]
Collaboration diagram for F90Msg:
Collaboration graph
[legend]

Public Member Functions

 F90Msg (int whichFile=0)
 Default constructor. More...
 
virtual ~F90Msg ()
 Empty destructor. More...
 
- Public Member Functions inherited from FFaMsg
 FFaMsg ()
 Default constructor. More...
 
virtual ~FFaMsg ()
 Empty destructor. More...
 
virtual bool openListFile (const char *=NULL, bool=false)
 Opens a list file containing a copy of the output list window. More...
 
virtual void closeListFile ()
 Closes the list file. More...
 

Protected Member Functions

virtual void listVt (const std::string &message, bool)
 Writes the message to the Fortran file, line by line. More...
 
- Protected Member Functions inherited from FFaMsg
virtual int dialogVt (const std::string &message, const FFaDialogType type, const char **genericButtons)
 
virtual int dialogVt (const std::string &message, const FFaDialogType type, const std::vector< std::string > &buttonTexts)
 
virtual int dialogVt (int &returnedSelectionIdx, const std::string &message, const FFaDialogType type, const std::vector< std::string > &buttonTexts, const std::vector< std::string > &selectionList)
 
virtual void tipVt (const std::string &str)
 
virtual void setStatusVt (const std::string &)
 
virtual void changeStatusVt (const std::string &)
 
virtual void pushStatusVt (const std::string &)
 
virtual void popStatusVt ()
 
virtual void enableSubStepsVt (int)
 
virtual void setSubStepVt (int)
 
virtual void disableSubStepsVt ()
 
virtual void displayTimeVt (int, int, int)
 
virtual void clearTimeVt ()
 
virtual void setSubTaskVt (const std::string &)
 
virtual void enableProgressVt (int)
 
virtual void setProgressVt (int)
 
virtual void disableProgressVt ()
 

Private Attributes

int ifile
 File option (0: write to error log file, 1: write to res-file) More...
 

Additional Inherited Members

- Public Types inherited from FFaMsg
enum  FFaDialogType {
  DISMISS_WARNING , DISMISS_ERROR , DISMISS_INFO , WARNING ,
  ERROR , OK , OK_CANCEL , YES_NO ,
  YES_NO_CANCEL , _ALL_ , OK_ALL_CANCEL , YES_ALL_NO ,
  YES_ALL_NO_ALL , YES_ALL_NO_CANCEL , YES_ALL_NO_ALL_CANCEL , YES_NO_ALL ,
  YES_NO_ALL_CANCEL , GENERIC
}
 Enums defining various dialog box types. More...
 
- Static Public Member Functions inherited from FFaMsg
static void setMessager (FFaMsg *messager=NULL)
 Sets the real messager object to be used. More...
 
static FFaMsggetMessager ()
 Returns the current messager object. More...
 
static bool usingDefault ()
 Returns true if we are using the default messager. More...
 
static void resetToAllAnswer (const FFaDialogType type=_ALL_)
 
static int dialog (const std::string &message, const FFaDialogType type=DISMISS_WARNING, const char **genericButtons=(const char **) NULL)
 Shows a dialog according to the dialog type. More...
 
static int dialog (const std::string &message, const FFaDialogType type, const std::vector< std::string > &buttonTexts)
 
static int dialog (int &returnedSelectionIdx, const std::string &message, const FFaDialogType type, const std::vector< std::string > &buttonTexts, const std::vector< std::string > &selectionList)
 
static void list (const std::string &str, bool onScreen=false)
 
static void tip (const std::string &str)
 
static void setStatus (const std::string &statusText)
 
static void changeStatus (const std::string &statusText)
 
static void pushStatus (const std::string &statusText)
 
static void popStatus ()
 
static void enableSubSteps (int steps)
 
static void setSubStep (int step)
 
static void disableSubSteps ()
 
static void displayTime (int hour, int min, int sec)
 
static void clearTime ()
 
static void setSubTask (const std::string &taskText)
 
static void enableProgress (int nSteps)
 
static void setProgress (int progressStep)
 
static void disableProgress ()
 
- Static Protected Member Functions inherited from FFaMsg
static void showStatus ()
 
- Static Protected Attributes inherited from FFaMsg
static std::stack< std::string > ourStatuses
 

Detailed Description

A sub-class of FFaMsg that passes the list-messages to Fortran.

All other member functions are empty (does nothing).

Constructor & Destructor Documentation

◆ F90Msg()

F90Msg::F90Msg ( int  whichFile = 0)
inline

Default constructor.

◆ ~F90Msg()

virtual F90Msg::~F90Msg ( )
inlinevirtual

Empty destructor.

Member Function Documentation

◆ listVt()

virtual void F90Msg::listVt ( const std::string &  message,
bool   
)
inlineprotectedvirtual

Writes the message to the Fortran file, line by line.

Reimplemented from FFaMsg.

Member Data Documentation

◆ ifile

int F90Msg::ifile
private

File option (0: write to error log file, 1: write to res-file)


The documentation for this class was generated from the following file: