Base Framework
Public Member Functions | List of all members
IDLMethod Class Reference

IDL method. More...

#include <base/rmi/idl/IDLMethod.h>

Inherits IDLObject.

Public Member Functions

 IDLMethod (const String &name) noexcept
 
 IDLMethod (const String &name, IDLType type) noexcept
 
void addArgument (IDLType type)
 
void addException (IDLException exception)
 
bool isStatic () const noexcept
 
bool isNonModifying () const noexcept
 
bool raises (IDLException exception) const noexcept
 
bool isCompatible (const IDLMethod &method) const noexcept
 
 ~IDLMethod () noexcept
 
- Public Member Functions inherited from IDLObject
 IDLObject () noexcept
 
 ~IDLObject () noexcept
 

Detailed Description

IDL method.

Interface Definition Language (IDL) method.

Version
1.0

Constructor & Destructor Documentation

◆ IDLMethod() [1/2]

IDLMethod::IDLMethod ( const String name)
noexcept

Initializes the IDL method with a void return type.

Parameters
nameThe name of the method.

◆ IDLMethod() [2/2]

IDLMethod::IDLMethod ( const String name,
IDLType  type 
)
noexcept

Initializes the IDL method.

Parameters
nameThe name of the method.
typeThe return type of the method.

◆ ~IDLMethod()

IDLMethod::~IDLMethod ( )
noexcept

Destroys the IDL method.

Member Function Documentation

◆ addArgument()

void IDLMethod::addArgument ( IDLType  type)

Adds an argument to the argument list.

◆ addException()

void IDLMethod::addException ( IDLException  exception)

Adds an exception to the exception specification.

◆ isCompatible()

bool IDLMethod::isCompatible ( const IDLMethod method) const
noexcept

Returns true if this method is compatible with the specified method.

◆ isNonModifying()

bool IDLMethod::isNonModifying ( ) const
noexcept

Returns true if the method is non-modifying.

◆ isStatic()

bool IDLMethod::isStatic ( ) const
noexcept

Returns true if the method is static.

◆ raises()

bool IDLMethod::raises ( IDLException  exception) const
noexcept

Returns true if the method has the specified exception in its exception specification.