WPILibC++  unspecified
Factory functions

Functions

static std::shared_ptr< Value > nt::Value::MakeBoolean (bool value, uint64_t time=0)
 Creates a boolean entry value. More...
 
static std::shared_ptr< Value > nt::Value::MakeDouble (double value, uint64_t time=0)
 Creates a double entry value. More...
 
static std::shared_ptr< Value > nt::Value::MakeString (const Twine &value, uint64_t time=0)
 Creates a string entry value. More...
 
template<typename T , typename std::enable_if< std::is_same< T, std::string >::value >::type >
static std::shared_ptr< Value > nt::Value::MakeString (T &&value, uint64_t time=0)
 Creates a string entry value. More...
 
static std::shared_ptr< Value > nt::Value::MakeRaw (StringRef value, uint64_t time=0)
 Creates a raw entry value. More...
 
template<typename T , typename std::enable_if< std::is_same< T, std::string >::value >::type >
static std::shared_ptr< Value > nt::Value::MakeRaw (T &&value, uint64_t time=0)
 Creates a raw entry value. More...
 
static std::shared_ptr< Value > nt::Value::MakeRpc (StringRef value, uint64_t time=0)
 Creates a rpc entry value. More...
 
template<typename T >
static std::shared_ptr< Value > nt::Value::MakeRpc (T &&value, uint64_t time=0)
 Creates a rpc entry value. More...
 
static std::shared_ptr< Valuent::Value::MakeBooleanArray (ArrayRef< int > value, uint64_t time=0)
 Creates a boolean array entry value. More...
 
static std::shared_ptr< Valuent::Value::MakeDoubleArray (ArrayRef< double > value, uint64_t time=0)
 Creates a double array entry value. More...
 
static std::shared_ptr< Valuent::Value::MakeStringArray (ArrayRef< std::string > value, uint64_t time=0)
 Creates a string array entry value. More...
 
static std::shared_ptr< Valuent::Value::MakeStringArray (std::vector< std::string > &&value, uint64_t time=0)
 

Detailed Description

Function Documentation

static std::shared_ptr<Value> nt::Value::MakeBoolean ( bool  value,
uint64_t  time = 0 
)
inlinestatic

Creates a boolean entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
std::shared_ptr< Value > Value::MakeBooleanArray ( wpi::ArrayRef< int >  value,
uint64_t  time = 0 
)
static

Creates a boolean array entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
static std::shared_ptr<Value> nt::Value::MakeDouble ( double  value,
uint64_t  time = 0 
)
inlinestatic

Creates a double entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
std::shared_ptr< Value > Value::MakeDoubleArray ( wpi::ArrayRef< double >  value,
uint64_t  time = 0 
)
static

Creates a double array entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
static std::shared_ptr<Value> nt::Value::MakeRaw ( StringRef  value,
uint64_t  time = 0 
)
inlinestatic

Creates a raw entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
template<typename T , typename std::enable_if< std::is_same< T, std::string >::value >::type >
static std::shared_ptr<Value> nt::Value::MakeRaw ( T &&  value,
uint64_t  time = 0 
)
inlinestatic

Creates a raw entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
static std::shared_ptr<Value> nt::Value::MakeRpc ( StringRef  value,
uint64_t  time = 0 
)
inlinestatic

Creates a rpc entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
template<typename T >
static std::shared_ptr<Value> nt::Value::MakeRpc ( T &&  value,
uint64_t  time = 0 
)
inlinestatic

Creates a rpc entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
static std::shared_ptr<Value> nt::Value::MakeString ( const Twine value,
uint64_t  time = 0 
)
inlinestatic

Creates a string entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
template<typename T , typename std::enable_if< std::is_same< T, std::string >::value >::type >
static std::shared_ptr<Value> nt::Value::MakeString ( T &&  value,
uint64_t  time = 0 
)
inlinestatic

Creates a string entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value
std::shared_ptr< Value > Value::MakeStringArray ( ArrayRef< std::string >  value,
uint64_t  time = 0 
)
static

Creates a string array entry value.

Parameters
valuethe value
timeif nonzero, the creation time to use (instead of the current time)
Returns
The entry value