Yet Another Robot Platform
No Matches
yarp::serversql::impl::Triple Class Reference

The basic unit of data the name server works with. More...

#include <yarp/serversql/impl/Triple.h>

Public Member Functions

 Triple ()
 Triple (const Triple &alt)
void reset ()
void split (const std::string &str)
const char * getNs ()
const char * getName ()
const char * getValue ()
std::string toString () const
void setNsNameValue (const char *ns, const char *name, const char *value)
void setNameValue (const char *name, const char *value)

Public Attributes

std::string ns
std::string name
std::string value
bool hasNs
bool hasName
bool hasValue

Detailed Description

The basic unit of data the name server works with.

There are three basic fields, all optional: a namespace (ns), a name, and a value. For those keeping score, this representation is a little bit like that of RDF, and a great deal like machine tags.

Definition at line 22 of file Triple.h.

Constructor & Destructor Documentation

◆ Triple() [1/2]

yarp::serversql::impl::Triple::Triple ( )

Definition at line 33 of file Triple.h.

◆ Triple() [2/2]

yarp::serversql::impl::Triple::Triple ( const Triple alt)

Definition at line 38 of file Triple.h.

Member Function Documentation

◆ getName()

const char * yarp::serversql::impl::Triple::getName ( )

Definition at line 84 of file Triple.h.

◆ getNs()

const char * yarp::serversql::impl::Triple::getNs ( )

Definition at line 76 of file Triple.h.

◆ getValue()

const char * yarp::serversql::impl::Triple::getValue ( )

Definition at line 92 of file Triple.h.

◆ reset()

void yarp::serversql::impl::Triple::reset ( )

Definition at line 48 of file Triple.h.

◆ setNameValue()

void yarp::serversql::impl::Triple::setNameValue ( const char *  name,
const char *  value 

Definition at line 123 of file Triple.h.

◆ setNsNameValue()

void yarp::serversql::impl::Triple::setNsNameValue ( const char *  ns,
const char *  name,
const char *  value 

Definition at line 116 of file Triple.h.

◆ split()

void yarp::serversql::impl::Triple::split ( const std::string &  str)

Definition at line 54 of file Triple.h.

◆ toString()

std::string yarp::serversql::impl::Triple::toString ( ) const

Definition at line 100 of file Triple.h.

Member Data Documentation

◆ hasName

bool yarp::serversql::impl::Triple::hasName

Definition at line 29 of file Triple.h.

◆ hasNs

bool yarp::serversql::impl::Triple::hasNs

Definition at line 28 of file Triple.h.

◆ hasValue

bool yarp::serversql::impl::Triple::hasValue

Definition at line 30 of file Triple.h.

◆ name

std::string yarp::serversql::impl::Triple::name

Definition at line 26 of file Triple.h.

◆ ns

std::string yarp::serversql::impl::Triple::ns

Definition at line 25 of file Triple.h.

◆ value

std::string yarp::serversql::impl::Triple::value

Definition at line 27 of file Triple.h.

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