YARP
Yet Another Robot Platform
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 27 of file Triple.h.

Constructor & Destructor Documentation

◆ Triple() [1/2]

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

Definition at line 38 of file Triple.h.

◆ Triple() [2/2]

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

Definition at line 43 of file Triple.h.

Member Function Documentation

◆ getName()

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

Definition at line 89 of file Triple.h.

◆ getNs()

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

Definition at line 81 of file Triple.h.

◆ getValue()

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

Definition at line 97 of file Triple.h.

◆ reset()

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

Definition at line 53 of file Triple.h.

◆ setNameValue()

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

Definition at line 128 of file Triple.h.

◆ setNsNameValue()

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

Definition at line 121 of file Triple.h.

◆ split()

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

Definition at line 59 of file Triple.h.

◆ toString()

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

Definition at line 105 of file Triple.h.

Member Data Documentation

◆ hasName

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

Definition at line 34 of file Triple.h.

◆ hasNs

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

Definition at line 33 of file Triple.h.

◆ hasValue

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

Definition at line 35 of file Triple.h.

◆ name

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

Definition at line 31 of file Triple.h.

◆ ns

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

Definition at line 30 of file Triple.h.

◆ value

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

Definition at line 32 of file Triple.h.


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