Instrument Neutral Distributed Interface INDI 2.2.5
INDI::LilXmlValue Class Reference

#include <indililxml.h>

Inheritance diagram for INDI::LilXmlValue:
INDI::LilXmlAttribute

Public Member Functions

 LilXmlValue (const char *value)
 LilXmlValue (const char *value, size_t size)
bool isValid () const
const void * data () const
size_t size () const
int toInt (safe_ptr< bool > ok=nullptr) const
double toDoubleSexa (safe_ptr< bool > ok=nullptr) const
double toDouble (safe_ptr< bool > ok=nullptr) const
const char * toCString () const
std::string toString () const
ISRule toISRule (safe_ptr< bool > ok=nullptr) const
ISState toISState (safe_ptr< bool > ok=nullptr) const
IPState toIPState (safe_ptr< bool > ok=nullptr) const
IPerm toIPerm (safe_ptr< bool > ok=nullptr) const
std::size_t indexOf (const char *needle, size_t from=0) const
std::size_t indexOf (const std::string &needle, size_t from=0) const
std::size_t lastIndexOf (const char *needle, size_t from=0) const
std::size_t lastIndexOf (const std::string &needle, size_t from=0) const
bool startsWith (const char *needle) const
bool startsWith (const std::string &needle) const
bool endsWith (const char *needle) const
bool endsWith (const std::string &needle) const
 operator const char * () const
 operator double () const
 operator int () const
 operator ISRule () const
 operator ISState () const
 operator IPState () const
 operator IPerm () const
 operator size_t () const

Protected Attributes

const char * mValue
size_t mSize

Detailed Description

Definition at line 51 of file indililxml.h.

Constructor & Destructor Documentation

◆ LilXmlValue() [1/2]

INDI::LilXmlValue::LilXmlValue ( const char * value)
inlineexplicit

Definition at line 204 of file indililxml.h.

◆ LilXmlValue() [2/2]

INDI::LilXmlValue::LilXmlValue ( const char * value,
size_t size )
inlineexplicit

Definition at line 209 of file indililxml.h.

Member Function Documentation

◆ data()

const void * INDI::LilXmlValue::data ( ) const
inline

Definition at line 219 of file indililxml.h.

◆ endsWith() [1/2]

bool INDI::LilXmlValue::endsWith ( const char * needle) const
inline

Definition at line 328 of file indililxml.h.

◆ endsWith() [2/2]

bool INDI::LilXmlValue::endsWith ( const std::string & needle) const
inline

Definition at line 333 of file indililxml.h.

◆ indexOf() [1/2]

std::size_t INDI::LilXmlValue::indexOf ( const char * needle,
size_t from = 0 ) const
inline

Definition at line 298 of file indililxml.h.

◆ indexOf() [2/2]

std::size_t INDI::LilXmlValue::indexOf ( const std::string & needle,
size_t from = 0 ) const
inline

Definition at line 303 of file indililxml.h.

◆ isValid()

bool INDI::LilXmlValue::isValid ( ) const
inline

Definition at line 214 of file indililxml.h.

◆ lastIndexOf() [1/2]

std::size_t INDI::LilXmlValue::lastIndexOf ( const char * needle,
size_t from = 0 ) const
inline

Definition at line 308 of file indililxml.h.

◆ lastIndexOf() [2/2]

std::size_t INDI::LilXmlValue::lastIndexOf ( const std::string & needle,
size_t from = 0 ) const
inline

Definition at line 313 of file indililxml.h.

◆ operator const char *()

INDI::LilXmlValue::operator const char * ( ) const
inline

Definition at line 87 of file indililxml.h.

◆ operator double()

INDI::LilXmlValue::operator double ( ) const
inline

Definition at line 88 of file indililxml.h.

◆ operator int()

INDI::LilXmlValue::operator int ( ) const
inline

Definition at line 89 of file indililxml.h.

◆ operator IPerm()

INDI::LilXmlValue::operator IPerm ( ) const
inline

Definition at line 93 of file indililxml.h.

◆ operator IPState()

INDI::LilXmlValue::operator IPState ( ) const
inline

Definition at line 92 of file indililxml.h.

◆ operator ISRule()

INDI::LilXmlValue::operator ISRule ( ) const
inline

Definition at line 90 of file indililxml.h.

◆ operator ISState()

INDI::LilXmlValue::operator ISState ( ) const
inline

Definition at line 91 of file indililxml.h.

◆ operator size_t()

INDI::LilXmlValue::operator size_t ( ) const
inline

Definition at line 94 of file indililxml.h.

◆ size()

size_t INDI::LilXmlValue::size ( ) const
inline

Definition at line 224 of file indililxml.h.

◆ startsWith() [1/2]

bool INDI::LilXmlValue::startsWith ( const char * needle) const
inline

Definition at line 318 of file indililxml.h.

◆ startsWith() [2/2]

bool INDI::LilXmlValue::startsWith ( const std::string & needle) const
inline

Definition at line 323 of file indililxml.h.

◆ toCString()

const char * INDI::LilXmlValue::toCString ( ) const
inline

Definition at line 260 of file indililxml.h.

◆ toDouble()

double INDI::LilXmlValue::toDouble ( safe_ptr< bool > ok = nullptr) const
inline

Definition at line 248 of file indililxml.h.

◆ toDoubleSexa()

double INDI::LilXmlValue::toDoubleSexa ( safe_ptr< bool > ok = nullptr) const
inline

Definition at line 241 of file indililxml.h.

◆ toInt()

int INDI::LilXmlValue::toInt ( safe_ptr< bool > ok = nullptr) const
inline

Definition at line 229 of file indililxml.h.

◆ toIPerm()

IPerm INDI::LilXmlValue::toIPerm ( safe_ptr< bool > ok = nullptr) const
inline

Definition at line 291 of file indililxml.h.

◆ toIPState()

IPState INDI::LilXmlValue::toIPState ( safe_ptr< bool > ok = nullptr) const
inline

Definition at line 284 of file indililxml.h.

◆ toISRule()

ISRule INDI::LilXmlValue::toISRule ( safe_ptr< bool > ok = nullptr) const
inline

Definition at line 270 of file indililxml.h.

◆ toISState()

ISState INDI::LilXmlValue::toISState ( safe_ptr< bool > ok = nullptr) const
inline

Definition at line 277 of file indililxml.h.

◆ toString()

std::string INDI::LilXmlValue::toString ( ) const
inline

Definition at line 265 of file indililxml.h.

Member Data Documentation

◆ mSize

size_t INDI::LilXmlValue::mSize
protected

Definition at line 98 of file indililxml.h.

◆ mValue

const char* INDI::LilXmlValue::mValue
protected

Definition at line 97 of file indililxml.h.


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