UA Server SDK C++ Bundle  1.4.1.271
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SrvT Class Reference

SrvT. More...

#include <srvtrace.h>

Inherits 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 long setProductVersion (const UaString &appVersion)
 Get the trace level. More...
 
static TraceLevel getTraceLevel ()
 Get the trace level. 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. 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 closeTrace ()
 Close trace file. More...
 
static bool isInitialized ()
 Returns the information if the trace is already initialized.
 

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: