simple Qt4 library for writing formated output to CSV file
License
pinkavaj/QCSVWriter
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Copyright 2011 Jiří Pinkava ===== License ===== Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ===== Description ===== C++ library/wrapper for writing CSV files. File is writen row by row. Cell values are formated by default/user specified formaters. ==== Example ==== // Create CSV writer with 3 columns QCSVWriter csvFile(3); // Open CSV file for writing if (!csvFile.open("my_new_file.csv")) return -1; // write header csvFile[0] = "date "; csvFile[1] = "column 1"; csvFile[2] = "column 2"; if (!csvFile.write()) return -1; // write data csvFile[0] = QDateTime.currentDateTime(); csvFile[1] = 3.1415; csvFile[2] = 1234567; if (!csvFile.write()) return -1; csvFile.close(); ===== Usage ===== This easiest way to incorporate this code into your project is add it as git submodule. * cd into dir where you software is checked out * type: git submodule add git@github.com:pinkavaj/QCSVWriter.git
About
simple Qt4 library for writing formated output to CSV file
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published