YARP
Yet Another Robot Platform
yarp::os::impl::SplitString Class Reference

Split a string into pieces. More...

#include <yarp/os/impl/SplitString.h>

Public Member Functions

 SplitString ()
 
 SplitString (const char *command, const char splitter=' ')
 
int size ()
 
void set (int index, const char *txt)
 
const char * get (int idx)
 
const char ** get ()
 
void apply (const char *command, char splitter=' ')
 

Detailed Description

Split a string into pieces.

This class is a bit crufty, and should be replaced with a simple Bottle (now that Bottle exists).

Definition at line 26 of file SplitString.h.

Constructor & Destructor Documentation

◆ SplitString() [1/2]

SplitString::SplitString ( )

Definition at line 18 of file SplitString.cpp.

◆ SplitString() [2/2]

SplitString::SplitString ( const char *  command,
const char  splitter = ' ' 
)

Definition at line 26 of file SplitString.cpp.

Member Function Documentation

◆ apply()

void SplitString::apply ( const char *  command,
char  splitter = ' ' 
)

Definition at line 54 of file SplitString.cpp.

◆ get() [1/2]

const char ** SplitString::get ( )

Definition at line 49 of file SplitString.cpp.

◆ get() [2/2]

const char * SplitString::get ( int  idx)

Definition at line 44 of file SplitString.cpp.

◆ set()

void SplitString::set ( int  index,
const char *  txt 
)

Definition at line 36 of file SplitString.cpp.

◆ size()

int SplitString::size ( )

Definition at line 31 of file SplitString.cpp.


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