C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
SrvT Class Reference

SrvT. More...

#include <srvtrace.h>

Inherits UaTrace, UaTrace, UaTrace, UaTrace, UaTrace, and UaTrace.

Public Member Functions

 SrvT ()
 construction
 
 ~SrvT ()
 destruction
 
- Public Member Functions inherited from UaTrace
 UaTrace ()
 construction
 
virtual ~UaTrace ()
 destruction
 

Static Public Member Functions

static void setTraceActive (bool isActive)
 Sets Trace to active. More...
 
static void setStackTraceActive (bool isActive, OpcUa_UInt32 uTraceLevel)
 Sets the stack Trace to active. More...
 
static bool isTraceActive ()
 Get trace active state for opc library. More...
 
static void sError (int nModule, const char *fmt,...)
 Special error trace that is sent to file trace if s_isTraceActive is set. More...
 
static void sWarning (int nModule, const char *fmt,...)
 Special error trace that is sent to file trace if s_isTraceActive is set. More...
 
static void sInfo (int nModule, const char *fmt,...)
 A Infotrace for the output. More...
 
static void sIfCall (int nModule, const char *fmt,...)
 Special error trace that is sent to file trace if s_isTraceActive is set. More...
 
static void sCtor (int nModule, const char *fmt,...)
 A Trace for Method incomming or outgoing. More...
 
static void sInOut (int nModule, const char *fmt,...)
 Special error trace that is sent to file trace if s_isTraceActive is set. More...
 
static void sData (int nModule, const char *fmt,...)
 A Datatrace for the output. More...
 
- Static Public Member Functions inherited from UaTrace
static long initTrace (TraceLevel traceLevel, unsigned int maxTraceEntries, unsigned int NumBackupFiles, const UaString &traceFile, const UaString &appName)
 Initialize the trace. More...
 
static long changeTrace (TraceLevel traceLevel, unsigned int maxTraceEntries, unsigned int NumBackupFiles, const UaString &traceFile)
 Change the trace settings. More...
 
static long initErrorTrace (const UaString &traceFile, const UaString &appName)
 Initialize the trace. More...
 
static void setPreFileTrace (bool isActive, TraceLevel traceLevel)
 Provides a string buffer trace before a trace file is created. More...
 
static long setProductVersion (const UaString &appVersion)
 Get the trace level. More...
 
static TraceLevel getTraceLevel ()
 Get the trace level. More...
 
static UaString getTraceFilePath ()
 Get the path of the trace file. More...
 
static void setLocalTimeOutput (bool isLocal)
 Set time output for trace to local time. More...
 
static void setPrintDateInTrace (bool printDateInTrace)
 Set time output for trace to print also the date. More...
 
static void setTraceHook (UaTraceHook *pTraceHook)
 Set a trace hook for all trace messages passing the configured trace level. More...
 
static void setErrorTraceHook (UaTraceHook *pErrorTraceHook)
 Set a trace hook for all error, warning and info trace messages This hook is set by the SDK and intended for internal use only. More...
 
static void tError (const char *fmt,...)
 Error trace output. More...
 
static void tWarning (const char *fmt,...)
 Warning trace output. More...
 
static void tInfo (const char *fmt,...)
 Info trace output. More...
 
static void tIfCall (const char *fmt,...)
 External interface call trace output. More...
 
static void tCtor (const char *fmt,...)
 Ctor and Dtor trace output. More...
 
static void tInOut (const char *fmt,...)
 Program flow trace output. More...
 
static void tData (const char *fmt,...)
 Data trace output. More...
 
static void flushTrace ()
 Write any data from the file buffer to the physical file. More...
 
static void closeTrace ()
 Close trace file. More...
 
static bool isInitialized ()
 Returns the information if the trace is already initialized.
 
static bool isPreFileTraceActive ()
 Get PreFileTrace active state. More...
 
static std::list< UaStringgetPreFileTraces ()
 Returns the list of pre file trace outputs.
 
static void clearPreFileTraces ()
 Clear the list of pre file trace outputs.
 
static void setMaxPreFileTraceEntries (unsigned int nMaxPreFileTraceEntries)
 Returns the list of pre file trace outputs. More...
 

Additional Inherited Members

- Public Types inherited from UaTrace
enum  TraceLevel {
  NoTrace = 0, Errors, Warning, Info,
  InterfaceCall, CtorDtor, ProgramFlow, Data
}
 Definition of the TraceLevel Enumeration. More...
 
- Static Protected Member Functions inherited from UaTrace
static void trace (TraceLevel traceLevel, const char *fmt, va_list arg_ptr)
 File trace output preparation. More...
 
static void traceOutput (TraceLevel traceLevel, const char *sContent, int nModule=0, bool bFromUaStack=false)
 File trace output. More...
 

Detailed Description

SrvT.

Class definition of SrvT. Derived from UaTrace. Provides a set of methods and properties that help you trace the execution of your code. You can use the properties and methods in the Trace class to instrument release builds. Instrumentation allows you to monitor the health of your application running in real-life settings. Tracing helps you isolate problems and fix them without disturbing a running system.

Member Function Documentation

bool SrvT::isTraceActive ( )
static

Get trace active state for opc library.

Returns
TRUE if active FALSE if not.
void SrvT::sCtor ( int  nModule,
const char *  fmt,
  ... 
)
static

A Trace for Method incomming or outgoing.

Parameters
fmtthe message to be printed out.
nModulename of the module.
void SrvT::sData ( int  nModule,
const char *  fmt,
  ... 
)
static

A Datatrace for the output.

Parameters
fmtthe message to be printed out.
nModulename of the module.
void SrvT::sError ( int  nModule,
const char *  fmt,
  ... 
)
static

Special error trace that is sent to file trace if s_isTraceActive is set.

Parameters
fmtthe message to be printed out.
nModulename of the module.
void SrvT::setStackTraceActive ( bool  isActive,
OpcUa_UInt32  uTraceLevel 
)
static

Sets the stack Trace to active.

Uses the same trace level like the server trace.

Parameters
isActivetrue sets the Trace to active false to inactive.
uTraceLevelthe stack trace level used
void SrvT::setTraceActive ( bool  isActive)
static

Sets Trace to active.

Parameters
isActivetrue sets the Trace to active false to inactive.
void SrvT::sIfCall ( int  nModule,
const char *  fmt,
  ... 
)
static

Special error trace that is sent to file trace if s_isTraceActive is set.

Parameters
fmtthe message to be printed out.
nModulename of the module.
void SrvT::sInfo ( int  nModule,
const char *  fmt,
  ... 
)
static

A Infotrace for the output.

Parameters
fmtthe message to be printed out.
nModulename of the module.
void SrvT::sInOut ( int  nModule,
const char *  fmt,
  ... 
)
static

Special error trace that is sent to file trace if s_isTraceActive is set.

Parameters
fmtthe message to be printed out.
nModulename of the module.
void SrvT::sWarning ( int  nModule,
const char *  fmt,
  ... 
)
static

Special error trace that is sent to file trace if s_isTraceActive is set.

Parameters
fmtthe message to be printed out.
nModulename of the module.

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