#include <cccc_itm.h>
Definition at line 15 of file cccc_itm.h.
CCCC_Item::CCCC_Item |
( |
const string & |
s, |
|
|
char |
c |
|
) |
| |
CCCC_Item::CCCC_Item |
( |
const string & |
s | ) |
|
bool CCCC_Item::Extract |
( |
string & |
s | ) |
|
Definition at line 47 of file cccc_itm.cc.
50 if(delimiter_position!=string::npos)
53 s=
buffer.substr(0,delimiter_position);
54 string tempBuffer=
buffer.substr(delimiter_position+1);
bool CCCC_Item::Extract |
( |
int & |
n | ) |
|
Definition at line 71 of file cccc_itm.cc.
75 n=atoi(numstr.c_str());
bool CCCC_Item::Extract |
( |
char & |
c | ) |
|
bool CCCC_Item::Extract |
( |
float & |
f | ) |
|
Definition at line 104 of file cccc_itm.cc.
108 f=atof(numstr.c_str());
bool CCCC_Item::FromFile |
( |
ifstream & |
ifstr | ) |
|
Definition at line 119 of file cccc_itm.cc.
122 char line_buffer[1024];
123 ifstr.getline(line_buffer,1023);
125 if(ifstr.good() &&
buffer.size()>0 &&
buffer.size()<1023)
130 cerr <<
"Delimiter is " <<
delimiter << endl;
bool CCCC_Item::Insert |
( |
const string & |
s | ) |
|
bool CCCC_Item::Insert |
( |
const char * |
cptr | ) |
|
Definition at line 41 of file cccc_itm.cc.
bool Insert(const string &s)
bool CCCC_Item::Insert |
( |
int |
n | ) |
|
Definition at line 64 of file cccc_itm.cc.
67 sprintf(numbuf,
"%d",n);
bool Insert(const string &s)
bool CCCC_Item::Insert |
( |
char |
c | ) |
|
Definition at line 79 of file cccc_itm.cc.
82 sprintf(charbuf,
"%c",c);
bool Insert(const string &s)
bool CCCC_Item::Insert |
( |
float |
f | ) |
|
Definition at line 97 of file cccc_itm.cc.
100 sprintf(numbuf,
"%f",f);
bool Insert(const string &s)
bool CCCC_Item::ToFile |
( |
ofstream & |
ofstr | ) |
|
char CCCC_Item::delimiter |
|
private |
The documentation for this class was generated from the following files: