ImportCSV Class Reference
Last update: 16.07.2025A class collecting import information for a csv file. More...
Public Types | |
| typedef std::set< string > | delimiter_set_type |
Public Member Functions | |
| check (Structure database) | |
| Checks validity of these data. More... | |
| import (Structure database) | |
| Imports the file with given name filename into the database given. More... | |
| ImportCSV (string filename) throw () | |
| Tries to determine some defaults to parse the CSV file filename given into the database. More... | |
Public Attributes | |
| string | delimiter |
| The delimiter character to be used to parse the CSV file See csv::CSVReader::m_delimiter for more information. | |
| bool | enforce_integer_design_idents |
| true if the design idents to be parsed are to be numbers (else: arbitrary strings) | |
| string | filename |
| The CSV file name to be parsed and imported. | |
| bool | row_orientated |
| Indicates the orientation of the CSV file given. More... | |
Detailed Description
A class collecting import information for a csv file.
Member Typedef Documentation
◆ delimiter_set_type
| typedef std::set< string > delimiter_set_type |
Constructor & Destructor Documentation
◆ ImportCSV()
| ImportCSV | ( | string | filename | ) | |
| throw | ( | ||||
| ) | |||||
Member Function Documentation
◆ check()
| check | ( | Structure | database | ) |
Checks validity of these data.
- Parameters
-
database The database where the data is going to be imported to
◆ import()
| import | ( | Structure | database | ) |
Imports the file with given name filename into the database given.
- Parameters
-
database The data base where all data is to be added.
- Exceptions
-
std::exception If an equally named data object would be replaced
Member Data Documentation
◆ row_orientated
| bool row_orientated |
Indicates the orientation of the CSV file given.
True means a row orientated format, false indicates a column orientated format.