Commit 64acb9d1 authored by Brent Pedersen's avatar Brent Pedersen
Browse files

use TokenizeColumns in groupBy and add lineFileUtilities as dependency to Makefile

parent 69c11d6e
......@@ -16,7 +16,7 @@ INCLUDES = -I$(UTILITIES_DIR)/tabFile/ \
# ----------------------------------
# define our source and object files
# ----------------------------------
SOURCES= groupBy.cpp
SOURCES= groupBy.cpp $(UTILITIES_DIR)/lineFileUtilities/lineFileUtilities.h
OBJECTS= groupBy.o
BUILT_OBJECTS= $(patsubst %,$(OBJ_DIR)/%,$(OBJECTS))
......
......@@ -172,10 +172,10 @@ int groupby_main(int argc, char* argv[]) {
// Split the column string sent by the user into discrete column numbers
// A comma separated string is expected.
vector<int> groupColumnsInt;
Tokenize(groupColumnsString, groupColumnsInt, ',');
TokenizeColumns(groupColumnsString, groupColumnsInt);
vector<int> opColumnsInt;
Tokenize(opsColumnString, opColumnsInt, ',');
TokenizeColumns(opsColumnString, opColumnsInt);
// sanity check the group columns
for(size_t i = 0; i < groupColumnsInt.size(); ++i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment