RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
Public Member Functions | List of all members
rstudio::launcher_plugins::options::Options::Init Class Reference

Class for initializing Options. More...

#include <Options.hpp>

Public Member Functions

 Init (Options &in_owner)
 Helper class which initializes Options. More...
 
template<class T >
Initoperator() (const char *in_name, Value< T > &in_value, const char *in_description)
 Operator which initializes a specific option value. More...
 
template<class T >
Initoperator() (const char *in_name, Value< T > &&in_value, const char *in_description)
 Operator which initializes a specific option value. More...
 

Detailed Description

Class for initializing Options.

Constructor & Destructor Documentation

◆ Init()

rstudio::launcher_plugins::options::Options::Init::Init ( Options in_owner)
explicit

Helper class which initializes Options.

Parameters
in_ownerThe Options object which owns this init object.

Member Function Documentation

◆ operator()() [1/2]

template<class T >
Init& rstudio::launcher_plugins::options::Options::Init::operator() ( const char *  in_name,
Value< T > &&  in_value,
const char *  in_description 
)

Operator which initializes a specific option value.

Template Parameters
TThe type of the option.
Parameters
in_nameThe name of the option.
in_valueThe value object, which holds the default and the storage object. The Value object is not usable after this call.
in_descriptionThe description of the option.
Returns
A reference to this Init object.

◆ operator()() [2/2]

template<class T >
Init& rstudio::launcher_plugins::options::Options::Init::operator() ( const char *  in_name,
Value< T > &  in_value,
const char *  in_description 
)

Operator which initializes a specific option value.

Template Parameters
TThe type of the option.
Parameters
in_nameThe name of the option.
in_valueThe value object, which holds the default and the storage object. The Value object is not usable after this call.
in_descriptionThe description of the option.
Returns
A reference to this Init object.

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