ContRap-Core
Public Member Functions | Protected Attributes

crp::Load Class Reference

Class Load represents the load command for libraries. More...

#include <command.h>

Inheritance diagram for crp::Load:
crp::ArgCommand crp::Command crp::Object

Public Member Functions

 Load (Library::OpenMode mode=Library::NO_CHANGE)
 Creates a load command.
virtual ~Load ()
 Virtual destructor.
virtual CommandType get_command_type () const
 Returns the enumerated type of the command.
void set_open_mode (Library::OpenMode mode)
 Sets the library open mode of the load command.
Library::OpenMode get_open_mode () const
 Returns the open mode.
virtual std::string to_string () const
 Converts the object to a non-formatted string.

Protected Attributes

Library::OpenMode mode
 Open mode of the libraries.

Detailed Description

Class Load represents the load command for libraries.


Constructor & Destructor Documentation

crp::Load::Load ( Library::OpenMode  mode = Library::NO_CHANGE)

Creates a load command.

Parameters:
modeLibrary open mode
virtual crp::Load::~Load ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual CommandType crp::Load::get_command_type ( ) const [inline, virtual]

Returns the enumerated type of the command.

Returns:
Type of the object

Implements crp::Command.

Library::OpenMode crp::Load::get_open_mode ( ) const [inline]

Returns the open mode.

Returns:
Open mode
void crp::Load::set_open_mode ( Library::OpenMode  mode) [inline]

Sets the library open mode of the load command.

Parameters:
modeOpen mode of the command
virtual std::string crp::Load::to_string ( ) const [virtual]

Converts the object to a non-formatted string.

This method is thought to be used for debugging purposes only.

Returns:
String representation of the object

Reimplemented from crp::Command.


Field Documentation

Open mode of the libraries.


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