LibreOffice Module codemaker (master) 1
Public Member Functions | Protected Attributes | List of all members
Options Class Referenceabstract

#include <options.hxx>

Inheritance diagram for Options:
[legend]

Public Member Functions

 Options ()
 
virtual ~Options ()
 
virtual bool initOptions (int ac, char *av[], bool bCmdFile=false)=0
 
virtual ::rtl::OString prepareHelp ()=0
 
const ::rtl::OString & getProgramName () const
 
bool isValid (const ::rtl::OString &option) const
 
const OString & getOption (const ::rtl::OString &option) const
 
const StringVectorgetInputFiles () const
 
const StringVectorgetExtraInputFiles () const
 

Protected Attributes

::rtl::OString m_program
 
StringVector m_inputFiles
 
StringVector m_extra_input_files
 
OptionMap m_options
 

Detailed Description

Definition at line 43 of file options.hxx.

Constructor & Destructor Documentation

◆ Options()

Options::Options ( )

Definition at line 22 of file options.cxx.

◆ ~Options()

Options::~Options ( )
virtual

Definition at line 24 of file options.cxx.

Member Function Documentation

◆ getExtraInputFiles()

const StringVector & Options::getExtraInputFiles ( ) const
inline

Definition at line 61 of file options.hxx.

References m_extra_input_files.

Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ getInputFiles()

const StringVector & Options::getInputFiles ( ) const
inline

Definition at line 59 of file options.hxx.

References m_inputFiles.

Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ getOption()

const OString & Options::getOption ( const ::rtl::OString &  option) const
Exceptions
IllegalArgument

Definition at line 31 of file options.cxx.

References i, m_options, and option.

Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ getProgramName()

const ::rtl::OString & Options::getProgramName ( ) const
inline

Definition at line 54 of file options.hxx.

References m_program.

◆ initOptions()

virtual bool Options::initOptions ( int  ac,
char *  av[],
bool  bCmdFile = false 
)
pure virtual
Exceptions
IllegalArgument

Implemented in CppuOptions, and JavaOptions.

◆ isValid()

bool Options::isValid ( const ::rtl::OString &  option) const

Definition at line 26 of file options.cxx.

References m_options, and option.

Referenced by CppuOptions::initOptions(), produce(), and SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ prepareHelp()

virtual ::rtl::OString Options::prepareHelp ( )
pure virtual

Implemented in CppuOptions, and JavaOptions.

Member Data Documentation

◆ m_extra_input_files

StringVector Options::m_extra_input_files
protected

◆ m_inputFiles

StringVector Options::m_inputFiles
protected

Definition at line 65 of file options.hxx.

Referenced by getInputFiles(), CppuOptions::initOptions(), and JavaOptions::initOptions().

◆ m_options

OptionMap Options::m_options
protected

Definition at line 67 of file options.hxx.

Referenced by getOption(), CppuOptions::initOptions(), JavaOptions::initOptions(), and isValid().

◆ m_program

::rtl::OString Options::m_program
protected

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