LibreOffice Module cpputools (master) 1
Functions | Variables
unoexe Namespace Reference

Functions

static void out (const char *pText)
 
static void out (std::u16string_view rText)
 
static bool readOption (OUString *pValue, const char *pOpt, sal_uInt32 *pnIndex, const OUString &aArg)
 
static bool readOption (bool *pbOpt, const char *pOpt, sal_uInt32 *pnIndex, std::u16string_view aArg)
 
template<class T >
static void createInstance (Reference< T > &rxOut, const Reference< XComponentContext > &xContext, const OUString &rServiceName)
 
static Reference< XInterfaceloadComponent (const Reference< XComponentContext > &xContext, const OUString &rImplName, const OUString &rLocation)
 

Variables

static bool s_quiet = false
 
const char arUsingText []
 

Function Documentation

◆ createInstance()

template<class T >
static void unoexe::createInstance ( Reference< T > &  rxOut,
const Reference< XComponentContext > &  xContext,
const OUString &  rServiceName 
)
static
Exceptions
Exception

Definition at line 144 of file unoexe.cxx.

References x.

Referenced by loadComponent().

◆ loadComponent()

static Reference< XInterface > unoexe::loadComponent ( const Reference< XComponentContext > &  xContext,
const OUString &  rImplName,
const OUString &  rLocation 
)
static
Exceptions
Exception

Definition at line 161 of file unoexe.cxx.

References createInstance(), out(), u, and xFactory.

Referenced by SAL_IMPLEMENT_MAIN().

◆ out() [1/2]

static void unoexe::out ( const char *  pText)
static

Definition at line 66 of file unoexe.cxx.

References s_quiet.

Referenced by loadComponent().

◆ out() [2/2]

static void unoexe::out ( std::u16string_view  rText)
static

Definition at line 72 of file unoexe.cxx.

References OUStringToOString(), and s_quiet.

Referenced by SAL_IMPLEMENT_MAIN().

◆ readOption() [1/2]

static bool unoexe::readOption ( bool *  pbOpt,
const char *  pOpt,
sal_uInt32 *  pnIndex,
std::u16string_view  aArg 
)
static

Definition at line 127 of file unoexe.cxx.

References SAL_INFO, o3tl::starts_with(), and u.

Referenced by SAL_IMPLEMENT_MAIN().

◆ readOption() [2/2]

static bool unoexe::readOption ( OUString *  pValue,
const char *  pOpt,
sal_uInt32 *  pnIndex,
const OUString &  aArg 
)
static
Exceptions
RuntimeException

Definition at line 90 of file unoexe.cxx.

References SAL_INFO, and u.

Variable Documentation

◆ arUsingText

const char unoexe::arUsingText[]
Initial value:
=
"\nusing:\n\n"
"uno [-c ComponentImplementationName -l LocationUrl | -s ServiceName]\n"
" [-u uno:(socket[,host=HostName][,port=nnn]|pipe[,name=PipeName]);<protocol>;Name\n"
" [--singleaccept] [--singleinstance]]\n"
" [--quiet]\n"
" [-- Argument1 Argument2 ...]\n"

Definition at line 81 of file unoexe.cxx.

Referenced by SAL_IMPLEMENT_MAIN().

◆ s_quiet

bool unoexe::s_quiet = false
static

Definition at line 64 of file unoexe.cxx.

Referenced by out(), and SAL_IMPLEMENT_MAIN().