|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLNET::CNetDisplayer Class ReferenceNet Displayer.
More...
#include <net_displayer.h>
Inheritance diagram for NLNET::CNetDisplayer:
List of all members.
Detailed Description
Net Displayer.
Sends the strings to a logger server (LOGS). How to log information (for debugging purpose) ? -
Bug:
-
When nlerror is called in a catch block, a connected NetDisplayer becomes an IDisplayer => pure virtual call
-
Author:
-
Olivier Cado , Nevrax France
-
Date:
-
2000
Definition at line 45 of file net_displayer.h.
Constructor & Destructor Documentation
NLNET::CNetDisplayer::CNetDisplayer |
( |
bool |
autoConnect = true |
) |
|
|
NLNET::CNetDisplayer::~CNetDisplayer |
( |
|
) |
[virtual] |
|
Member Function Documentation
bool NLNET::CNetDisplayer::connected |
( |
|
) |
[inline] |
|
|
Returns true if the displayer is connected to a Logging Service.
Definition at line 62 of file net_displayer.h.
References _Server. |
virtual void NLNET::CNetDisplayer::doDisplay |
( |
const NLMISC::TDisplayInfo & |
args, |
|
|
const char * |
message |
|
) |
[protected, virtual] |
|
|
Sends the string to the logging server.
-
Warning:
-
If not connected, tries to connect to the logging server each call. It can slow down your program a lot.
|
void NLNET::CNetDisplayer::findAndConnect |
( |
|
) |
[protected] |
|
void NLNET::CNetDisplayer::setLogServer |
( |
const CInetAddress & |
logServerAddr |
) |
|
|
|
Sets logging server address.
Call this method from outside only if you want to use a LOGS not registered within the NS. It does nothing if the displayer is already connected to a server.
Definition at line 75 of file net_displayer.cpp.
References _Server, _ServerAddr, and _ServerAllocated. |
Member Data Documentation
bool NLNET::CNetDisplayer::_ServerAllocated [private]
|
|
The documentation for this class was generated from the following files:
|
|