Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F27036447
CSVreaderModule.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Authored By
Unknown
Size
1011 B
Referenced Files
None
Subscribers
None
CSVreaderModule.h
View Options
#ifndef CSV_READER_HEADERFILE
#define CSV_READER_HEADERFILE
#include
"Module.h"
#include
<fstream>
class
CSVreaderModule
:
public
Module
{
private
:
FILE
*
fpointer
;
unsigned
int
num_of_datasets
;
unsigned
int
list_of_datasets
[
MAX_NUM_OF_DATA_SETS
];
float
data_read
[
MAX_NUM_OF_DATA_SETS
];
unsigned
int
row
,
start_row
,
column
;
float
input_data
;
bool
flag_csv_reader_configured
;
unsigned
int
dataset_counter
;
// private fuctions
void
initialize_csvreader
(
FILE
*
fpointer
,
unsigned
int
column
,
unsigned
int
start_row
);
public
:
CSVreaderModule
();
CSVreaderModule
(
const
char
*
name
);
CSVreaderModule
(
FILE
*
fpointer
,
unsigned
int
column
,
unsigned
int
start_row
);
CSVreaderModule
(
const
char
*
name
,
FILE
*
fpointer
,
unsigned
int
column
,
unsigned
int
start_row
);
bool
read_one_row
();
bool
read_field
();
float
get_value_of_field
(
unsigned
int
field
);
// new functions
bool
get_next_value
(
float
*
value
);
void
close_file
();
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Oct 27, 7:58 PM (7 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
407643
Default Alt Text
CSVreaderModule.h (1011 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline