Jetson Inference
DNN Vision Library

csvData More...

#include <csvReader.h>

Public Member Functions

 csvData (char *str)
 
 csvData (const char *str)
 
 csvData (std::string &str)
 
template<typename T >
 csvData (T value)
 
template<typename T >
void set (T value)
 
 operator std::string & ()
 
 operator const std::string & () const
 
 operator const char * () const
 
 operator int () const
 
 operator float () const
 
 operator double () const
 
bool toInt (int *value) const
 
bool toFloat (float *value) const
 
bool toDouble (double *value) const
 
int toInt (bool *valid=NULL) const
 
float toFloat (bool *valid=NULL) const
 
double toDouble (bool *valid=NULL) const
 

Static Public Member Functions

static std::vector< csvDataParse (const char *str, const char *delimiters=",;\")
 
static bool Parse (std::vector< csvData > &data, const char *str, const char *delimiters=",;\")
 

Public Attributes

std::string string
 

Friends

std::istream & operator>> (std::istream &in, csvData &obj)
 
std::ostream & operator<< (std::ostream &out, const csvData &obj)
 

Detailed Description

Constructor & Destructor Documentation

◆ csvData() [1/4]

csvData::csvData ( char *  str)
inline

◆ csvData() [2/4]

csvData::csvData ( const char *  str)
inline

◆ csvData() [3/4]

csvData::csvData ( std::string &  str)
inline

◆ csvData() [4/4]

template<typename T >
csvData::csvData ( value)
inline

Member Function Documentation

◆ operator const char *()

csvData::operator const char * ( ) const
inline

◆ operator const std::string &()

csvData::operator const std::string & ( ) const
inline

◆ operator double()

csvData::operator double ( ) const
inline

◆ operator float()

csvData::operator float ( ) const
inline

◆ operator int()

csvData::operator int ( ) const
inline

◆ operator std::string &()

csvData::operator std::string & ( )
inline

◆ Parse() [1/2]

std::vector< csvData > csvData::Parse ( const char *  str,
const char *  delimiters = ",;\t " 
)
inlinestatic

◆ Parse() [2/2]

bool csvData::Parse ( std::vector< csvData > &  data,
const char *  str,
const char *  delimiters = ",;\t " 
)
inlinestatic

◆ set()

template<typename T >
void csvData::set ( value)
inline

◆ toDouble() [1/2]

bool csvData::toDouble ( double *  value) const
inline

◆ toDouble() [2/2]

double csvData::toDouble ( bool *  valid = NULL) const
inline

◆ toFloat() [1/2]

bool csvData::toFloat ( float *  value) const
inline

◆ toFloat() [2/2]

float csvData::toFloat ( bool *  valid = NULL) const
inline

◆ toInt() [1/2]

bool csvData::toInt ( int *  value) const
inline

◆ toInt() [2/2]

int csvData::toInt ( bool *  valid = NULL) const
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const csvData obj 
)
friend

◆ operator>>

std::istream& operator>> ( std::istream &  in,
csvData obj 
)
friend

Member Data Documentation

◆ string

std::string csvData::string

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