PTLib  Version 2.10.4
PCLI::Arguments Class Reference

This class is an enhancement to PArgList to add context. More...

#include <cli.h>

Inheritance diagram for PCLI::Arguments:
PArgList PObject

List of all members.

Public Member Functions

Construction
 Arguments (Context &context, const PString &rawLine)
Operations
ContextWriteUsage ()
 Write to the CLI output channel the usage for the current command.
ContextWriteError (const PString &error=PString::Empty())
 Write an error to the CLI output channel.
Member access
ContextGetContext () const
 Get the CLI context supplying the command line arguments.

Protected Attributes

Contextm_context
PString m_command
PString m_usage

Detailed Description

This class is an enhancement to PArgList to add context.


Constructor & Destructor Documentation

PCLI::Arguments::Arguments ( Context context,
const PString rawLine 
)

Member Function Documentation

Context& PCLI::Arguments::GetContext ( ) const [inline]

Get the CLI context supplying the command line arguments.

References m_context.

Write an error to the CLI output channel.

Parameters:
errorError message

Write to the CLI output channel the usage for the current command.


Member Data Documentation

Referenced by GetContext().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines