Skip to content

Commit

Permalink
Merge pull request #35 from paulvollmer/develop
Browse files Browse the repository at this point in the history
v0.2.1
  • Loading branch information
paulvollmer committed May 15, 2019
2 parents cb22d00 + 3222074 commit 0bd59e6
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 36 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2011-2018 Paul Vollmer, https://paulvollmer.net
Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Check out for new release at <https://github.com/paulvollmer/ofxCsv>
Current Version
---------------

0.2.0 (stable and versioned using [semantic versioning](http://semver.org))
0.2.1 (stable and versioned using [semantic versioning](http://semver.org))

Basic API Overview
------------------
Expand Down Expand Up @@ -93,6 +93,9 @@ 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

Expand Down Expand Up @@ -123,4 +126,4 @@ License

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

See also, LICENSE.txt in this distribution.
See also, [LICENSE](LICENSE) in this distribution.
8 changes: 4 additions & 4 deletions csvExample/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand All @@ -24,8 +24,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @modified 2016.04.21
* @version 0.2.0
* @modified 2019.05.15
* @version 0.2.1
*/

#include "ofMain.h"
Expand Down
8 changes: 4 additions & 4 deletions csvExample/src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand All @@ -24,8 +24,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @modified 2016.04.23
* @version 0.2.0
* @modified 2019.05.15
* @version 0.2.1
*/

#include "ofApp.h"
Expand Down
8 changes: 4 additions & 4 deletions csvExample/src/ofApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand All @@ -24,8 +24,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @modified 2016.04.21
* @version 0.2.0
* @modified 2019.05.15
* @version 0.2.1
*/

#pragma once
Expand Down
14 changes: 7 additions & 7 deletions src/ofxCsv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand All @@ -24,8 +24,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @modified 2016.04.23
* @version 0.2.0
* @modified 2019.05.15
* @version 0.2.1
*/

#include "ofxCsv.h"
Expand Down Expand Up @@ -205,11 +205,11 @@ void ofxCsv::load(const vector<vector<string>> &rows) {

//--------------------------------------------------
void ofxCsv::expand(int rows, int cols) {
rows = MAX(rows, 0);
rows = max(rows, 0);
if(data.empty()) {
rows = MAX(rows, 1);
rows = max(rows, 1);
}
cols = MAX(cols, 1);
cols = max(cols, 1);
while(data.size() < rows) {
data.push_back(ofxCsvRow());
}
Expand Down
8 changes: 4 additions & 4 deletions src/ofxCsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand All @@ -24,8 +24,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @modified 2016.04.23
* @version 0.2.0
* @modified 2019.05.15
* @version 0.2.1
*/

#pragma once
Expand Down
12 changes: 6 additions & 6 deletions src/ofxCsvRow.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand All @@ -24,8 +24,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @modified 2016.04.23
* @version 0.2.0
* @modified 2019.05.15
* @version 0.2.1
*/

#include "ofxCsvRow.h"
Expand Down Expand Up @@ -79,9 +79,9 @@ void ofxCsvRow::load(const vector<string> &cols) {

//--------------------------------------------------
void ofxCsvRow::expand(int cols) {
cols = MAX(cols, 0);
cols = max(cols, 0);
if(data.empty()) {
cols = MAX(cols, 1);
cols = max(cols, 1);
}
while(data.size() <= cols) {
data.push_back("");
Expand Down
9 changes: 5 additions & 4 deletions src/ofxCsvRow.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand All @@ -24,11 +24,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @modified 2016.04.23
* @version 0.2.0
* @modified 2019.05.15
* @version 0.2.1
*/

#pragma once
using namespace std;

#include "ofConstants.h"

Expand Down

0 comments on commit 0bd59e6

Please sign in to comment.