Jetpack documentation 1.0.0
Loading...
Searching...
No Matches
Jetpack.cpp File Reference

The Jetpack.cpp. More...

#include "utils/Jetpack.hpp"

Functions

std::vector< std::string > stringToVector (std::string str, std::string delimiters)
 Converts a string to a vector of strings.
 
void closeJetpack (UNUSED int signal)
 Closes the jetpack.
 

Detailed Description

The Jetpack.cpp.

Author
Christophe VANDEVOIR, Guillaume LECOCQ and Nicolas TORO

Function Documentation

◆ closeJetpack()

void closeJetpack ( UNUSED int signal)

Closes the jetpack.

Note
This function is a signal handler for SIGINT
Parameters
signalThe signal to handle
Exceptions
JetpackStopif the jetpack is closed

◆ stringToVector()

std::vector< std::string > stringToVector ( std::string str,
std::string delimiters )

Converts a string to a vector of strings.

Converts a string to a vector of strings using the specified delimiters.

Parameters
strThe string to convert
delimitersThe delimiters to use
Returns
A vector of strings
Parameters
strThe string to convert
delimitersThe delimiters to use for splitting the string
Returns
A vector of strings