Codemesh Runtime v3 C++ API Reference  3.9.205
Public Member Functions | Protected Member Functions | List of all members
xmog_options Class Reference

This class wraps around options that govern the overall behavior of the runtime library with respect to logging, tracing, errorhandling, etc. More...

#include <xmog_options.h>

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

Public Member Functions

virtual int readOptions (const char *file, XMOGVERSION vers=NULL, XMOGCONFIG conf=NULL, XMOGVERSION reserved0=NULL)
 Reads a configuration file and initializes the instance with the found settings. More...
 
virtual void setSkipTypeAnalysisForTheseAssemblies (const char *skip)
 Sets the assemblies for which no type analysis is performed. More...
 
virtual const char * getSkipTypeAnalysisForTheseAssemblies ()
 Returns the assembly name fragments for which no type analysis is performed. More...
 
virtual void setPerformTypeAnalysisForTheseAssemblies (const char *perform)
 Sets the assemblies for which type analysis is performed. More...
 
virtual const char * getPerformTypeAnalysisForTheseAssemblies ()
 Returns the assembly name fragments for which type analysis is performed. More...
 
virtual void setCOMExceptionMessages (const char *ce)
 Sets the flag controlling whether COM exception support should be turned on. More...
 
virtual void setCOMExceptionMessages (bool ce)
 Sets the flag controlling whether COM exception support should be turned on. More...
 
virtual bool getCOMExceptionMessages ()
 Returns whether COM exception support is turned on. More...
 
virtual void setUseCodemeshSecurityManager (const char *ce)
 Sets the flag controlling whether a Codemesh SecurityManager should be used. More...
 
virtual void setUseCodemeshSecurityManager (bool ce)
 Sets the flag controlling whether a Codemesh SecurityManager should be used. More...
 
virtual bool getUseCodemeshSecurityManager ()
 Returns whether the Codemesh security manager should be used.
 
virtual void setJvmPath (const char *jvmPath)
 Sets the JVM path that is to be used. More...
 
virtual char * getJvmPath ()
 Returns the JVM path used by the in-process JNI implementation.
 
virtual void setNoshutdownProcessing (bool noshut)
 Sets the shutdown policy. More...
 
virtual void setNoshutdownProcessing (const char *noshut)
 Sets the shutdown policy. More...
 
virtual void setNativeLibraryMode (bool native)
 Sets the runtime mode. More...
 
virtual void setNativeLibraryMode (const char *native)
 Sets the runtime mode. More...
 
virtual bool getNativeLibraryMode ()
 Returns the native library mode of the runtime. More...
 
virtual bool getNoshutdownProcessing ()
 Returns the shutdown policy.
 
virtual void setTracing (xmog_trace_facility fac, int level)
 Sets the tracing level for a given tracing category. More...
 
virtual void setTracing (xmog_trace_facility fac, xmog_trace_level level)
 Sets the tracing level for a given tracing category. More...
 
virtual void setTracing (xmog_trace_facility fac, const char *level)
 Sets the tracing level for a given tracing category. More...
 
virtual void setTracing (const char *facAndLevel)
 Sets the tracing level for a given tracing category. More...
 
virtual xmog_trace_level getTracing (xmog_trace_facility fac)
 Returns the tracing level for a given category. More...
 
virtual void setTraceFileCount (int traceFileCount)
 Sets the number of trace files to be retained. More...
 
virtual void setTraceFileCount (const char *traceFileCount)
 Sets the number of trace files to be retained. More...
 
virtual int getTraceFileCount ()
 Returns the number of trace files to be retained.
 
virtual void setTraceFile (const char *traceFile)
 Sets the trace file. More...
 
virtual void setTraceFile (const char *traceFile, int numTraceFiles)
 Sets the trace file and the file ring size. More...
 
virtual char * getTraceFile ()
 Returns the name of the trace file.
 
virtual void setTraceMethod (const char *traceMethod)
 Sets the trace method.
 
virtual void setTraceMethod (XMOG_TRACE traceMethod)
 Sets the trace method.
 
virtual XMOG_TRACE getTraceMethod ()
 Returns the trace method.
 
virtual void trace (xmog_trace_facility fac, xmog_trace_level level, const char *format,...)
 Trace a certain message belonging to a certain category at a certain level. More...
 
virtual void trace (int fac, xmog_trace_level level, const char *format,...)
 Trace a certain message belonging to a certain category at a certain level. More...
 
virtual void setDefaultEncoding (const char *enc)
 Sets the default encoding that is used by newly created threads that are attached to the JVM. More...
 
virtual char * getDefaultEncoding ()
 Returns the name of the default encoding that is to be used for the new JVM. More...
 
virtual void setExceptionPolicy (const char *pol)
 Sets the errorhandling policy.
 
virtual void setExceptionPolicy (xmog_exception_policy pol, XMOG_ECB exccb=0)
 Sets the errorhandling policy.
 
virtual xmog_exception_policy getExceptionPolicy ()
 Returns the errorhandling policy.
 
virtual void setExceptionCallback (const char *exccb)
 Sets the errorhandling callback method.
 
virtual void setExceptionCallback (XMOG_ECB exccb)
 Sets the errorhandling callback method.
 
virtual XMOG_ECB getExceptionCallback ()
 Returns the errorhandling callback method.
 
virtual void setRemote (bool remote)
 Sets the remote flag. More...
 
virtual void setRemote (const char *remote)
 Sets the remote flag. More...
 
virtual bool getRemote ()
 Returns the remote flag.
 
virtual void setServer (bool server)
 Sets the server flag. More...
 
virtual bool getServer ()
 Returns the value of the server flag. More...
 
void printJvmPathAndExit ()
 Prints the configured JvmPath to stdout and exits. More...
 
char * getLdLibraryPath ()
 Returns a path that is proper for the configured JVM. More...
 
void setLdLibraryPath (const char *path)
 Sets the environment variable that is responsible for specifying the path on which shared libraries are searched for. More...
 
void printLdLibraryPathAndExit ()
 Prints to stdout the PATH components that are probably required to be on the platform loader's library search path and then exits.
 
virtual void setNumMilliSecondsToForcedGC (int ms)
 Sets the number of milliseconds between forced GCs in .NET. More...
 
virtual void setNumMilliSecondsToForcedGC (const char *ms)
 Sets the flag controlling whether COM exception support should be turned on. More...
 
virtual int getNumMilliSecondsToForcedGC ()
 Returns the number of milliseconds between forced GCs in .NET. More...
 
virtual void setNumObjectsToForcedGC (int ms)
 Sets the number of proxy object creations before a forced .NET GC. More...
 
virtual void setNumObjectsToForcedGC (const char *ms)
 Sets the number of proxy object creations before a forced .NET GC. More...
 
virtual int getNumObjectsToForcedGC ()
 Returns the number of proxy object creations before a forced .NET GC. More...
 

Protected Member Functions

 xmog_options (bool bEnvOverrides=true)
 Creates an xmog_options instance that might be initialized from the environment. More...
 
 xmog_options (const char *filename, bool bEnvOverrides=true)
 Creates an xmog_options instance that might be initialized from a file and/or the environment. More...
 
 xmog_options (const char *filename, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides=true)
 Creates an xmog_options instance that might be initialized from a file and/or the environment. More...
 
 xmog_options (XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides=true)
 Creates an xmog_options instance that might be initialized from a file the registry and/or the environment. More...
 
 xmog_options (int argc, char *argv[], bool bEnvOverrides=true)
 Creates an xmog_options instance that might be initialized from command line arguments and/or the environment. More...
 
virtual ~xmog_options ()
 Cleans up behind the instance.
 
void init ()
 Initializes the instance.
 
void env_override ()
 Initializes the options data from the environment variables.
 
void reset ()
 Resets the instance to its initial defaults.
 

Additional Inherited Members

- Static Public Member Functions inherited from xmog_tracer
static void JNICALL traceOutputDebugString (FILE *fpTrace, int traceLevel, const char *format, va_list args)
 Trace a message using the Windows platform API DebugOutputString function. More...
 
static void JNICALL traceEventLog (FILE *fpTrace, int traceLevel, const char *format, va_list args)
 Trace a message using the Windows event log. More...
 

Detailed Description

This class wraps around options that govern the overall behavior of the runtime library with respect to logging, tracing, errorhandling, etc.

This class supports the following properties:

Setting File or Registry CLI Environment Description
Special COM support COMExceptionMessages -cem XMOG_CEM Enable special handling of exceptions that makes error reporting easier for COM clients. This feature is usually only used from .NET via generated C# bindings.
Special .NET support MillisecondsToForcedGC -msgc XMOG_MSGC Specifies a time interval after which the runtime forces a .NET garbage collection. This feature helps significantly reduce the likelihood of a Java OutOfMemoryError due to the .NET garbage collector not collecting proxy objects. It generally has a negative impact on performance.
Special .NET support NumObjectsToForcedGC -ogc XMOG_OGC Specifies a number of proxy object creations after which the runtime forces a .NET garbage collection. This feature helps significantly reduce the likelihood of a Java OutOfMemoryError due to the .NET garbage collector not collecting proxy objects. It generally has a negative impact on performance.
Default Encoding DefaultEncoding -enc XMOG_DEFAULT_ENCODING The default character set that is used for conversions between Java strings and native strings, for example "US-ASCII".
See also
String Handling
Errorhandling policy ExceptionHandling -exc XMOG_EXCEPTION_POLICY The default errorhandling policy, for example "TypedException".
See also
Error Handling
Errorhandling callback ExceptionCallback -exccb XMOG_EXCEPTION_CALLBACK The callback to be used for the "ExceptionCallback" policy.
JVM RuntimeLib -jvm XMOG_JVM_PATH The runtime library to be used.
Shutdown processing NoShutdown -noshut XMOG_NO_SHUT true if normal shutdown processing is to be suppressed.
Remote Remote -remote XMOG_REMOTE true if a remote connection to a shared JVM is to be used, false if in-process JNI should be used.
Custom trace file TraceFile -tracefile XMOG_TRACE_FILE The file to which all tracing output is sent.
Tracing level at which messages are logged TraceLevel -tracelevel XMOG_TRACE_LEVEL The tracelevel for all trace facilities. Use the string form of the value, for example TraceInfo or TraceVerbose.
Custom trace method TraceMethod -tracemethod XMOG_TRACE_METHOD The function to be used for tracing calls.
Security Manager UseCodemeshSecurityManager -cmsm XMOG_USE_CODEMESH_SECURITY_MANAGER This feature causes Codemesh's security manager to be used in place of the configured one. The Codemesh security manager grants several privileges required by the runtime without you having to worry about it. It delegates other checks to the configured security manager.
See also
Security

Constructor & Destructor Documentation

◆ xmog_options() [1/5]

xmog_options::xmog_options ( bool  bEnvOverrides = true)
protected

Creates an xmog_options instance that might be initialized from the environment.

Parameters
bEnvOverridestrue if environment variables are taken into account.

◆ xmog_options() [2/5]

xmog_options::xmog_options ( const char *  filename,
bool  bEnvOverrides = true 
)
protected

Creates an xmog_options instance that might be initialized from a file and/or the environment.

Parameters
filenamethe name of the configuration file which contains runtime configuration settings.
bEnvOverridestrue if environment variables are taken into account.

◆ xmog_options() [3/5]

xmog_options::xmog_options ( const char *  filename,
XMOGVERSION  vers,
XMOGCONFIG  conf,
XMOGVERSION  reserved0,
bool  bEnvOverrides = true 
)
protected

Creates an xmog_options instance that might be initialized from a file and/or the environment.

This particular method takes old-style section selectors as input, giving it all information required to deal with old JunC++ion-style configuration files.

Parameters
filenamethe name of the configuration file which contains runtime configuration settings.
versthe version string we're looking for in the configfile.
confthe configuration name string we're looking for in the configfile.
reserved0should always be NULL.
bEnvOverridestrue if environment variables are taken into account.

◆ xmog_options() [4/5]

xmog_options::xmog_options ( XMOGVERSION  vers,
XMOGCONFIG  conf,
XMOGVERSION  reserved0,
bool  bEnvOverrides = true 
)
protected

Creates an xmog_options instance that might be initialized from a file the registry and/or the environment.

This particular method takes old-style section selectors as input, giving it all information required to deal with the old JunC++ion-style configuration files or registry settings.

Parameters
versthe version string we're looking for in the configfile.
confthe configuration name string we're looking for in the configfile.
reserved0should always be NULL.
bEnvOverridestrue if environment variables are taken into account.

◆ xmog_options() [5/5]

xmog_options::xmog_options ( int  argc,
char *  argv[],
bool  bEnvOverrides = true 
)
protected

Creates an xmog_options instance that might be initialized from command line arguments and/or the environment.

Parameters
argcthe number of arguments.
argvan array of string arguments.
bEnvOverridestrue if environment variables are taken into account.

Member Function Documentation

◆ getCOMExceptionMessages()

virtual bool xmog_options::getCOMExceptionMessages ( )
virtual

Returns whether COM exception support is turned on.

This method is a support method for the .NET bindings.

◆ getDefaultEncoding()

virtual char* xmog_options::getDefaultEncoding ( )
virtual

Returns the name of the default encoding that is to be used for the new JVM.

See also
setDefaultEncoding(const char*)

◆ getLdLibraryPath()

char* xmog_options::getLdLibraryPath ( )

Returns a path that is proper for the configured JVM.

The caller is responsible for freeing the returned string.

◆ getNativeLibraryMode()

virtual bool xmog_options::getNativeLibraryMode ( )
virtual

Returns the native library mode of the runtime.

Returns true if the runtime is operating in native library mode.

◆ getNumMilliSecondsToForcedGC()

virtual int xmog_options::getNumMilliSecondsToForcedGC ( )
virtual

Returns the number of milliseconds between forced GCs in .NET.

This method is a support method for the .NET bindings.

◆ getNumObjectsToForcedGC()

virtual int xmog_options::getNumObjectsToForcedGC ( )
virtual

Returns the number of proxy object creations before a forced .NET GC.

This method is a support method for the .NET bindings.

◆ getPerformTypeAnalysisForTheseAssemblies()

virtual const char* xmog_options::getPerformTypeAnalysisForTheseAssemblies ( )
virtual

Returns the assembly name fragments for which type analysis is performed.

This method is a support method for the .NET bindings.

◆ getServer()

virtual bool xmog_options::getServer ( )
virtual

Returns the value of the server flag.

Deprecated:

◆ getSkipTypeAnalysisForTheseAssemblies()

virtual const char* xmog_options::getSkipTypeAnalysisForTheseAssemblies ( )
virtual

Returns the assembly name fragments for which no type analysis is performed.

This method is a support method for the .NET bindings.

◆ getTracing()

virtual xmog_trace_level xmog_options::getTracing ( xmog_trace_facility  fac)
virtual

Returns the tracing level for a given category.

Parameters
facthe tracing facility for which we wish to know the current minimum level.

◆ printJvmPathAndExit()

void xmog_options::printJvmPathAndExit ( )

Prints the configured JvmPath to stdout and exits.

This function is useful to query an application's configured JVM and set up the LD_LIBRARY_PATH (LIBPATH,...) if the builtin function for that purpose does not work with the configured JVM.

◆ readOptions()

virtual int xmog_options::readOptions ( const char *  file,
XMOGVERSION  vers = NULL,
XMOGCONFIG  conf = NULL,
XMOGVERSION  reserved0 = NULL 
)
virtual

Reads a configuration file and initializes the instance with the found settings.

Parameters
filethe name of the configuration file which contains runtime configuration settings.
versthe version string we're looking for in the configfile.
confthe configuration name string we're looking for in the configfile.
reserved0should always be NULL.
Returns
0 on success, negative value on failure.

◆ setCOMExceptionMessages() [1/2]

virtual void xmog_options::setCOMExceptionMessages ( bool  ce)
virtual

Sets the flag controlling whether COM exception support should be turned on.

This method is a support method for the .NET bindings.

Parameters
cetrue if COM exception support is to be turned on.

◆ setCOMExceptionMessages() [2/2]

virtual void xmog_options::setCOMExceptionMessages ( const char *  ce)
virtual

Sets the flag controlling whether COM exception support should be turned on.

This method is a support method for the .NET bindings.

Parameters
ce"true" if COM exception support is to be turned on.

◆ setDefaultEncoding()

virtual void xmog_options::setDefaultEncoding ( const char *  enc)
virtual

Sets the default encoding that is used by newly created threads that are attached to the JVM.

Parameters
encthe encoding to be used. The following encodings are supported by all JVMs: US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, and UTF-16. Other encodings are supported as well.

◆ setJvmPath()

virtual void xmog_options::setJvmPath ( const char *  jvmPath)
virtual

Sets the JVM path that is to be used.

Parameters
jvmPaththe path to the JVM that is to be used by the native process if in-process JNI is desired.

◆ setLdLibraryPath()

void xmog_options::setLdLibraryPath ( const char *  path)

Sets the environment variable that is responsible for specifying the path on which shared libraries are searched for.

This function is not the corresponding function to getLdLibraryPath(). This function allows the specification of an arbitrary path whereas the getLdLibraryPath() function returns the union of the already configured path and the directories required for the currently configured JVM.

◆ setNativeLibraryMode() [1/2]

virtual void xmog_options::setNativeLibraryMode ( bool  native)
virtual

Sets the runtime mode.

In native library mode, the runtime library will assume that it is being used inside a Java process. This means that it will not attempt to load a JVM and it will also adjust certain initialization behaviors that would be required if the library were to lauch a JVM.

Parameters
nativetrue if the library is used in "native library" mode, false otherwise. The default value is false.

◆ setNativeLibraryMode() [2/2]

virtual void xmog_options::setNativeLibraryMode ( const char *  native)
virtual

Sets the runtime mode.

In native library mode, the runtime library will assume that it is being used inside a Java process. This means that it will not attempt to load a JVM and it will also adjust certain initialization behaviors that would be required if the library were to lauch a JVM.

This property, like most properties, has to be set before the runtime attempts to make a connection to the Java side. You can do this in a config hook that gets invoked before loading, in some static initialization code in your native library, or in an environment option.

Parameters
native"true" if the library is used in "native library" mode, "false" otherwise. The default value is false.

◆ setNoshutdownProcessing() [1/2]

virtual void xmog_options::setNoshutdownProcessing ( bool  noshut)
virtual

Sets the shutdown policy.

Sometimes the operating system unloads the JVM before the process has had a chance to call all the object destructors. In that case, the process will crash on exit. Setting the noshutdown flag to true will prevent the destructors from executing and prevent the crash.

Parameters
noshut"true" to suppress JVM cleanup during shutdown processing, "false" otherwise.

◆ setNoshutdownProcessing() [2/2]

virtual void xmog_options::setNoshutdownProcessing ( const char *  noshut)
virtual

Sets the shutdown policy.

Sometimes the operating system unloads the JVM before the process has had a chance to call all the object destructors. In that case, the process will crash on exit. Setting the noshutdown flag to true will prevent the destructors from executing and prevent the crash.

Parameters
noshut"true" to suppress JVM cleanup during shutdown processing, "false" otherwise.

◆ setNumMilliSecondsToForcedGC() [1/2]

virtual void xmog_options::setNumMilliSecondsToForcedGC ( const char *  ms)
virtual

Sets the flag controlling whether COM exception support should be turned on.

This method is a support method for the .NET bindings.

Parameters
cetrue if COM exception support is to be turned on.

◆ setNumMilliSecondsToForcedGC() [2/2]

virtual void xmog_options::setNumMilliSecondsToForcedGC ( int  ms)
virtual

Sets the number of milliseconds between forced GCs in .NET.

This method is a support method for the .NET bindings and does not have any usefulness for C++ applicaitons.

Parameters
msthe number of milliseconds.

◆ setNumObjectsToForcedGC() [1/2]

virtual void xmog_options::setNumObjectsToForcedGC ( const char *  ms)
virtual

Sets the number of proxy object creations before a forced .NET GC.

This method is a support method for the .NET bindings and does not have any usefulness for C++ applicaitons.

Parameters
msstring representing the number of proxy object creations.

◆ setNumObjectsToForcedGC() [2/2]

virtual void xmog_options::setNumObjectsToForcedGC ( int  ms)
virtual

Sets the number of proxy object creations before a forced .NET GC.

This method is a support method for the .NET bindings and does not have any usefulness for C++ applicaitons.

Parameters
msthe number of proxy object creations.

◆ setPerformTypeAnalysisForTheseAssemblies()

virtual void xmog_options::setPerformTypeAnalysisForTheseAssemblies ( const char *  perform)
virtual

Sets the assemblies for which type analysis is performed.

This method is a support method for the .NET bindings.

Parameters
performsemicolon-separated list of assembly name fragments.

◆ setRemote() [1/2]

virtual void xmog_options::setRemote ( bool  remote)
virtual

Sets the remote flag.

Use true to use the remote connection settings to attempt connecting to an out-of-process JVM, false for in-process JNI.

Parameters
remotetrue if remote execution is desired, false otherwise.

◆ setRemote() [2/2]

virtual void xmog_options::setRemote ( const char *  remote)
virtual

Sets the remote flag.

Use true to use the remote connection settings to attempt connecting to an out-of-process JVM, false for in-process JNI.

Parameters
remote"true" if remote execution is desired, "false" otherwise.

◆ setServer()

virtual void xmog_options::setServer ( bool  server)
virtual

Sets the server flag.

Deprecated:

◆ setSkipTypeAnalysisForTheseAssemblies()

virtual void xmog_options::setSkipTypeAnalysisForTheseAssemblies ( const char *  skip)
virtual

Sets the assemblies for which no type analysis is performed.

This method is a support method for the .NET bindings.

Parameters
skipsemicolon-separated list of assembly name fragments.

◆ setTraceFile() [1/2]

virtual void xmog_options::setTraceFile ( const char *  traceFile)
virtual

Sets the trace file.

Allows tracing output to be rerouted to a file that is specified by name. The strings "stdout" and "stderr" refer to the console output and error output streams and are treated specially. NULL will simply close a possibly open tracing stream and not open a new one.

This function delegates to the newer setTraceFile() function that takes an additional integer argument that represents the trace file ring size. The default value for the ring size is 0, i.e. we don't retain any old trace files.

Parameters
traceFilethe trace file to which we're printing trace messages.
See also
setTraceFile(const char*,int)

◆ setTraceFile() [2/2]

virtual void xmog_options::setTraceFile ( const char *  traceFile,
int  numTraceFiles 
)
virtual

Sets the trace file and the file ring size.

Allows tracing output to be rerouted to a file that is specified by name. The strings "stdout" and "stderr" refer to the console output and error output streams and are treated specially. NULL will simply close a possibly open tracing stream and not open a new one.

The number of trace files is interpreted as a limit that prevents the creation of ever new trace files.

Parameters
traceFilethe trace file to which we're printing trace messages.
numTraceFilesthe number of old trace files that are retained.

◆ setTraceFileCount() [1/2]

virtual void xmog_options::setTraceFileCount ( const char *  traceFileCount)
virtual

Sets the number of trace files to be retained.

Trace files are overwritten each time the process starts afresh. Setting a non-zero value here allows you to specify the number of old files that you wish to retain. They get renamed by appending a period followed by an integer. The higher the integer, the older the file.

Parameters
traceFileCounta string containing a numeric value representing the number of trace files to retain.

◆ setTraceFileCount() [2/2]

virtual void xmog_options::setTraceFileCount ( int  traceFileCount)
virtual

Sets the number of trace files to be retained.

Trace files are overwritten each time the process starts afresh. Setting a non-zero value here allows you to specify the number of old files that you wish to retain. They get renamed by appending a period followed by an integer. The higher the integer, the older the file.

Parameters
traceFileCounta numeric value representing the number of trace files to retain.

◆ setTracing() [1/4]

virtual void xmog_options::setTracing ( const char *  facAndLevel)
virtual

Sets the tracing level for a given tracing category.

This method can be used to set the threshold level above which tracing messages will be used for a given facility.

Parameters
facAndLevelthe tracing facility and level.

◆ setTracing() [2/4]

virtual void xmog_options::setTracing ( xmog_trace_facility  fac,
const char *  level 
)
virtual

Sets the tracing level for a given tracing category.

This method can be used to set the threshold level above which tracing messages will be used for a given facility.

Parameters
facthe tracing facility for which we're setting the minimum level.
levelthe minimum level of importance that we're tracing.

◆ setTracing() [3/4]

virtual void xmog_options::setTracing ( xmog_trace_facility  fac,
int  level 
)
virtual

Sets the tracing level for a given tracing category.

This method can be used to set the threshold level above which tracing messages will be used for a given facility.

Parameters
facthe tracing facility for which we're setting the minimum level.
levelthe minimum level of importance that we're tracing.

◆ setTracing() [4/4]

virtual void xmog_options::setTracing ( xmog_trace_facility  fac,
xmog_trace_level  level 
)
virtual

Sets the tracing level for a given tracing category.

This method can be used to set the threshold level above which tracing messages will be used for a given facility.

Parameters
facthe tracing facility for which we're setting the minimum level.
levelthe minimum level of importance that we're tracing.

◆ setUseCodemeshSecurityManager() [1/2]

virtual void xmog_options::setUseCodemeshSecurityManager ( bool  ce)
virtual

Sets the flag controlling whether a Codemesh SecurityManager should be used.

Parameters
cetrue if the Codemesh security manager should be used.

◆ setUseCodemeshSecurityManager() [2/2]

virtual void xmog_options::setUseCodemeshSecurityManager ( const char *  ce)
virtual

Sets the flag controlling whether a Codemesh SecurityManager should be used.

Parameters
ce"true" if the Codemesh security manager should be used.

◆ trace() [1/2]

virtual void xmog_options::trace ( int  fac,
xmog_trace_level  level,
const char *  format,
  ... 
)
virtual

Trace a certain message belonging to a certain category at a certain level.

Parameters
facthe trace facility(s) for which this message is relevant.
levelthe trace level of this message.
formatthe message or format string (in printf style).

Implements xmog_tracer.

◆ trace() [2/2]

virtual void xmog_options::trace ( xmog_trace_facility  fac,
xmog_trace_level  level,
const char *  format,
  ... 
)
virtual

Trace a certain message belonging to a certain category at a certain level.

Parameters
facthe trace facility for which this message is relevant.
levelthe trace level of this message.
formatthe message or format string (in printf style).

Implements xmog_tracer.


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

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.