Slice Tools
Home
SourceForge Page
libFoundation
Home
Class Hierarchy
Class List
Class Members
Examples
|
|
CategoryInformation Class Reference#include <CategoryInformation.hh>
List of all members.
Detailed Description
Hold the internal information for each category.
A "Category" would be created for each different functional section of a program. They are created and destroyed only by the log manager to store information about each category throughout the lifetime of the logger. Each category has independent fitlerLevels, messageLevels, messageLevel stacks, and can be independently turned on or off.
Member Function Documentation
bool CategoryInformation::doLog |
( |
MessageLevel |
messageLevel |
) |
const |
|
|
Function to check that category is enabled and message is not filtered.
A message will be logged if it's messagelevel is less than or equal to the filter level
- Returns:
- If message should be logged
|
std::string CategoryInformation::getCategoryName |
( |
|
) |
const |
|
|
Gets the name of the category.
- Returns:
- Name of the category
|
|
Gets the current filter level.
- Returns:
- Current filter Level
|
|
Gets the current message level.
- Returns:
- Current message Level
|
bool CategoryInformation::isEnabled |
( |
|
) |
|
|
|
Checks if category is enabled.
|
void CategoryInformation::popMessageLevel |
( |
|
) |
|
|
|
Pops a message level off of a stack and sets that to be the new messagelevel.
- See also:
- pushMessageLevel
|
void CategoryInformation::pushMessageLevel |
( |
MessageLevel |
messageLevel |
) |
|
|
|
Pushes the current message level onto a stack, and sets a new messagelevel.
- Parameters:
-
messageLevel | Message level to set |
- See also:
- popMessageLevel
|
void CategoryInformation::setFilterLevel |
( |
MessageLevel |
filterLevel |
) |
|
|
|
Sets the current filter level.
- Parameters:
-
filterLevel | New filter Level |
|
void CategoryInformation::setMessageLevel |
( |
MessageLevel |
messageLevel |
) |
|
|
|
Sets the message level.
- Parameters:
-
messageLevel | New Message level |
|
Friends And Related Function Documentation
The documentation for this class was generated from the following files:
|