Command_LogLevel Class Reference

Sets the loglevel to one of the values "debug, warning, info, error or fatal" and writes this back to the passed pointer. More...

#include <command_loglevel.h>

Inheritance diagram for Command_LogLevel:
Command

List of all members.

Public Member Functions

 Command_LogLevel (tgt::LogLevel *dbgLevel)
bool execute (const std::vector< std::string > &parameters)
 Executes this command with the given parameters.
bool checkParameters (const std::vector< std::string > &parameters)
 Checks the parameters for consistency and number.

Protected Attributes

tgt::LogLeveldbgLevel_

Detailed Description

Sets the loglevel to one of the values "debug, warning, info, error or fatal" and writes this back to the passed pointer.

See also:
Command, CommandlineParser

Definition at line 41 of file command_loglevel.h.


Member Function Documentation

bool checkParameters ( const std::vector< std::string > &  parameters  )  [virtual]

Checks the parameters for consistency and number.

This version only tests for the number of parameters. If you want to test for other conditions, overwrite this method in a derived class

Parameters:
parameters The parameters which should be tested
Returns:
true, if the parameters are correct

Reimplemented from Command.

Definition at line 57 of file command_loglevel.cpp.

bool execute ( const std::vector< std::string > &  parameters  )  [virtual]

Executes this command with the given parameters.

Parameters:
parameters The parameters needed for the execution of this command.
Returns:
true, if the execution was successful, false otherwise

Implements Command.

Definition at line 39 of file command_loglevel.cpp.