Coder Social home page Coder Social logo

thomasbayot / ofxcsv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paulvollmer/ofxcsv

0.0 1.0 0.0 111 KB

openFrameworks addon for reading and writing CSV(Character Separated Values) Files.

License: MIT License

C++ 86.38% Makefile 13.62%

ofxcsv's Introduction

ofxCsv

ofxCsv is an addon for openFrameworks to read and write CSV(Character Separated Values) files.

You can choose a character separator to create individual tables.

Inspired and based on Ben Fry's table class.

Check out for new release at https://github.com/paulvollmer/ofxCsv

Current Version

0.2.1 (stable and versioned using semantic versioning)

Basic API Overview

ofxCsv:

load(string path, string separator, string comment)
load(string path, string separator)
load(string path)

load(vector<ofxCsvRow> rows)
load(vector<string> rows)

save(string path, bool quote, string separator)
save(string path, bool quote)
save(string path)

createFile(string path)

addRow(ofxCsvRow row)
addRow()
setRow(int index, ofxCsvRow row)
getRow(int index)
insertRow(int index, ofxCsvRow row)
removeRow(int index)

ofxCsvRow:

load(string cols, string separator)
load(vector<string> cols)

getInt(int col)
getFloat(int col)
getString(int col)
getBool(int col)

addInt(int what)
addFloat(int what)
addString(int what)
addBool(int what)

setInt(int col, int what)
setFloat(int col, float what)
setString(int col, string what)
setBool(int col, bool what)

insertInt(int col, int what)
insertFloat(int col, float what)
insertString(int col, string what)
insertBool(int col, bool what)

remove(int col)

See src/ofxCsv.h & src/ofxCsv.h for detailed information & additional functionality.

Installation & Usage

To install ofxCsv, move the ofxCsv folder to your openFrameworks/addons folder.

Basic usage is demonstrated by csvExample.

With OF version 0.9.0+, the OF Project Generator will add the compiler search paths for the project automatically if configured to include ofxCsv.

Project files for the example are not included so you will need to generate the project files for your operating system and development environment using the OF ProjectGenerator which is included with the OpenFrameworks distribution.

Press the Import button in the ProjectGenerator & select the addons/ofxCsv/csvExample folder. Next, press the "Generate" to populate the example with the project files you will need to build it on your OS.

Issues and Bugs

You can find a list of all known bugs at GitHub. Please report if you find an unknown bug.

Changelog

A detailed changelog, intended for programmers.

0.2.1
bugfix for OF 0.10

0.2.0
partial rewrite & update to OF 0.9+, added ofxCsvRow

0.1.3
small bugfix (thanks to Pinkerton)

0.1.2
moved to ofxCsv Repository

0.1.1b
small changes (also at ofxWrongPowder Repository)

0.1.0
starting addon at ofxWrongPowder Repository

Contributors

License

ofxCsv is Licensed under MIT Public License: http://www.opensource.org/licenses/MIT

See also, LICENSE in this distribution.

ofxcsv's People

Contributors

danomatika avatar paulvollmer avatar tado avatar bitdeli-chef avatar carthach avatar schwittlick avatar ofcinzio avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.