MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Traceable Class Referenceabstract

#include <output.h>

Inheritance diagram for Traceable:
Collaboration diagram for Traceable:

Public Types

enum  { TRACE = 0x01U, TRACE_PUBLIC_MASK = 0x0FU, TRACE_PRIVATE = 0x10U, TRACE_PRIVATE_MASK = ~TRACE_PUBLIC_MASK }
 

Public Member Functions

 Traceable (flag fTrace=0)
 
virtual ~Traceable (void)
 
virtual void Trace (OutputHandler &OH) const =0
 
virtual flag fToBeTraced (void) const
 
virtual void SetTraceFlag (flag f=TRACE)
 

Private Attributes

flag fTrace
 

Detailed Description

Definition at line 680 of file output.h.

Member Enumeration Documentation

anonymous enum
Enumerator
TRACE 
TRACE_PUBLIC_MASK 
TRACE_PRIVATE 
TRACE_PRIVATE_MASK 

Definition at line 682 of file output.h.

682  {
683  TRACE = 0x01U,
684  TRACE_PUBLIC_MASK = 0x0FU,
685  TRACE_PRIVATE = 0x10U,
686  TRACE_PRIVATE_MASK = ~TRACE_PUBLIC_MASK
687  };

Constructor & Destructor Documentation

Traceable::Traceable ( flag  fTrace = 0)

Definition at line 903 of file output.cc.

904 :fTrace(fTrace)
905 {
906 
907 }
flag fTrace
Definition: output.h:697
Traceable::~Traceable ( void  )
virtual

Definition at line 909 of file output.cc.

910 {
911 
912 }

Member Function Documentation

flag Traceable::fToBeTraced ( void  ) const
virtual

Definition at line 914 of file output.cc.

References fTrace.

Referenced by DriveCaller::Trace().

915 {
916  return fTrace;
917 }
flag fTrace
Definition: output.h:697
void Traceable::SetTraceFlag ( flag  f = TRACE)
virtual

Definition at line 919 of file output.cc.

References ASSERT, and fTrace.

Referenced by DriveCallerRead::ReadOutput().

920 {
921  ASSERT(f ? f & flag(1) : 1);
922 
923  fTrace = f;
924 }
long int flag
Definition: mbdyn.h:43
flag fTrace
Definition: output.h:697
#define ASSERT(expression)
Definition: colamd.c:977
virtual void Traceable::Trace ( OutputHandler OH) const
pure virtual

Implemented in DriveCaller.

Member Data Documentation

flag Traceable::fTrace
private

Definition at line 697 of file output.h.

Referenced by fToBeTraced(), SetTraceFlag(), and DriveCaller::Trace().


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