Skip to content

Commit c65d804

Browse files
committed
Initial commit of framework
1 parent ad971b9 commit c65d804

20 files changed

+1301
-0
lines changed

Data/Exercise.cpp

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* File: Exercise.cpp
3+
* Author: davidlou
4+
*
5+
* Created on January 31, 2015, 10:16 PM
6+
*/
7+
8+
#include "Exercise.h"
9+
10+
Exercise::Exercise(const string name_, const string category_)
11+
: _name(name_), _category(category_){
12+
13+
}
14+
15+
Exercise::Exercise(const Exercise& orig) {
16+
}
17+
18+
Exercise::~Exercise() {
19+
}
20+
21+
string Exercise::category() const{
22+
return _category;
23+
}
24+
25+
string Exercise::name() const{
26+
return _name;
27+
}

Data/Exercise.h

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* File: Exercise.h
3+
* Author: davidlou
4+
*
5+
* Created on January 31, 2015, 10:16 PM
6+
*/
7+
8+
#ifndef EXERCISE_H
9+
#define EXERCISE_H
10+
11+
#include <cstdlib>
12+
#include <string>
13+
using namespace std;
14+
15+
class Exercise {
16+
public:
17+
Exercise(const string name_, const string category_);
18+
Exercise(const Exercise& orig);
19+
virtual ~Exercise();
20+
std::string name() const;
21+
std::string category() const;
22+
private:
23+
std::string _name;
24+
std::string _category;
25+
};
26+
27+
#endif /* EXERCISE_H */
28+
29+
/*
30+
* File: exercise.h
31+
* Author: davidlou
32+
*
33+
* Created on January 31, 2015, 10:12 PM
34+
*/

Makefile

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
#
2+
# There exist several targets which are by default empty and which can be
3+
# used for execution of your targets. These targets are usually executed
4+
# before and after some main targets. They are:
5+
#
6+
# .build-pre: called before 'build' target
7+
# .build-post: called after 'build' target
8+
# .clean-pre: called before 'clean' target
9+
# .clean-post: called after 'clean' target
10+
# .clobber-pre: called before 'clobber' target
11+
# .clobber-post: called after 'clobber' target
12+
# .all-pre: called before 'all' target
13+
# .all-post: called after 'all' target
14+
# .help-pre: called before 'help' target
15+
# .help-post: called after 'help' target
16+
#
17+
# Targets beginning with '.' are not intended to be called on their own.
18+
#
19+
# Main targets can be executed directly, and they are:
20+
#
21+
# build build a specific configuration
22+
# clean remove built files from a configuration
23+
# clobber remove all built files
24+
# all build all configurations
25+
# help print help mesage
26+
#
27+
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
28+
# .help-impl are implemented in nbproject/makefile-impl.mk.
29+
#
30+
# Available make variables:
31+
#
32+
# CND_BASEDIR base directory for relative paths
33+
# CND_DISTDIR default top distribution directory (build artifacts)
34+
# CND_BUILDDIR default top build directory (object files, ...)
35+
# CONF name of current configuration
36+
# CND_PLATFORM_${CONF} platform name (current configuration)
37+
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
38+
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
39+
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
40+
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
41+
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
42+
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
43+
#
44+
# NOCDDL
45+
46+
47+
# Environment
48+
MKDIR=mkdir
49+
CP=cp
50+
CCADMIN=CCadmin
51+
52+
53+
# build
54+
build: .build-post
55+
56+
.build-pre:
57+
# Add your pre 'build' code here...
58+
59+
.build-post: .build-impl
60+
# Add your post 'build' code here...
61+
62+
63+
# clean
64+
clean: .clean-post
65+
66+
.clean-pre:
67+
# Add your pre 'clean' code here...
68+
69+
.clean-post: .clean-impl
70+
# Add your post 'clean' code here...
71+
72+
73+
# clobber
74+
clobber: .clobber-post
75+
76+
.clobber-pre:
77+
# Add your pre 'clobber' code here...
78+
79+
.clobber-post: .clobber-impl
80+
# Add your post 'clobber' code here...
81+
82+
83+
# all
84+
all: .all-post
85+
86+
.all-pre:
87+
# Add your pre 'all' code here...
88+
89+
.all-post: .all-impl
90+
# Add your post 'all' code here...
91+
92+
93+
# build tests
94+
build-tests: .build-tests-post
95+
96+
.build-tests-pre:
97+
# Add your pre 'build-tests' code here...
98+
99+
.build-tests-post: .build-tests-impl
100+
# Add your post 'build-tests' code here...
101+
102+
103+
# run tests
104+
test: .test-post
105+
106+
.test-pre: build-tests
107+
# Add your pre 'test' code here...
108+
109+
.test-post: .test-impl
110+
# Add your post 'test' code here...
111+
112+
113+
# help
114+
help: .help-post
115+
116+
.help-pre:
117+
# Add your pre 'help' code here...
118+
119+
.help-post: .help-impl
120+
# Add your post 'help' code here...
121+
122+
123+
124+
# include project implementation makefile
125+
include nbproject/Makefile-impl.mk
126+
127+
# include project make variables
128+
include nbproject/Makefile-variables.mk

OVERVIEW

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Workout
2+
3+
A workout is composed of
4+
5+
a list of sets
6+
a program descriptor
7+
Date/time for start and end
8+
notes
9+
10+
Set
11+
A set is composed of rest, break (for change of exercise), or a exercise
12+
with desired and achieved number of reps along with data about them
13+
14+
belted vs not
15+
chalked
16+
AMRAP?
17+
RPE raiting
18+
19+
Exercise
20+
An exercise is a name, a category
21+
22+

main.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* File: main.cpp
3+
* Author: davidlou
4+
*
5+
* Created on January 31, 2015, 7:03 PM
6+
*/
7+
8+
#include <cstdlib>
9+
10+
using namespace std;
11+
12+
/*
13+
*
14+
*/
15+
int main(int argc, char** argv) {
16+
17+
return 0;
18+
}
19+

nbproject/Makefile-Debug.mk

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
#
2+
# Generated Makefile - do not edit!
3+
#
4+
# Edit the Makefile in the project folder instead (../Makefile). Each target
5+
# has a -pre and a -post target defined where you can add customized code.
6+
#
7+
# This makefile implements configuration specific macros and targets.
8+
9+
10+
# Environment
11+
MKDIR=mkdir
12+
CP=cp
13+
GREP=grep
14+
NM=nm
15+
CCADMIN=CCadmin
16+
RANLIB=ranlib
17+
CC=gcc
18+
CCC=g++
19+
CXX=g++
20+
FC=gfortran
21+
AS=as
22+
23+
# Macros
24+
CND_PLATFORM=Cygwin_4.x-Windows
25+
CND_DLIB_EXT=dll
26+
CND_CONF=Debug
27+
CND_DISTDIR=dist
28+
CND_BUILDDIR=build
29+
30+
# Include project Makefile
31+
include Makefile
32+
33+
# Object Directory
34+
OBJECTDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}
35+
36+
# Object Files
37+
OBJECTFILES= \
38+
${OBJECTDIR}/Data/Exercise.o \
39+
${OBJECTDIR}/main.o
40+
41+
# Test Directory
42+
TESTDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tests
43+
44+
# Test Files
45+
TESTFILES= \
46+
${TESTDIR}/TestFiles/f2
47+
48+
# C Compiler Flags
49+
CFLAGS=
50+
51+
# CC Compiler Flags
52+
CCFLAGS=
53+
CXXFLAGS=
54+
55+
# Fortran Compiler Flags
56+
FFLAGS=
57+
58+
# Assembler Flags
59+
ASFLAGS=
60+
61+
# Link Libraries and Options
62+
LDLIBSOPTIONS=
63+
64+
# Build Targets
65+
.build-conf: ${BUILD_SUBPROJECTS}
66+
"${MAKE}" -f nbproject/Makefile-${CND_CONF}.mk ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lifttrack.exe
67+
68+
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lifttrack.exe: ${OBJECTFILES}
69+
${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}
70+
${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lifttrack ${OBJECTFILES} ${LDLIBSOPTIONS}
71+
72+
${OBJECTDIR}/Data/Exercise.o: Data/Exercise.cpp
73+
${MKDIR} -p ${OBJECTDIR}/Data
74+
${RM} "$@.d"
75+
$(COMPILE.cc) -g -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Data/Exercise.o Data/Exercise.cpp
76+
77+
${OBJECTDIR}/main.o: main.cpp
78+
${MKDIR} -p ${OBJECTDIR}
79+
${RM} "$@.d"
80+
$(COMPILE.cc) -g -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/main.o main.cpp
81+
82+
# Subprojects
83+
.build-subprojects:
84+
85+
# Build Test Targets
86+
.build-tests-conf: .build-conf ${TESTFILES}
87+
${TESTDIR}/TestFiles/f2: ${TESTDIR}/tests/ExerciseTest.o ${TESTDIR}/tests/exerciseTestRunner.o ${OBJECTFILES:%.o=%_nomain.o}
88+
${MKDIR} -p ${TESTDIR}/TestFiles
89+
${LINK.cc} -o ${TESTDIR}/TestFiles/f2 $^ ${LDLIBSOPTIONS} `cppunit-config --libs`
90+
91+
92+
${TESTDIR}/tests/ExerciseTest.o: tests/ExerciseTest.cpp
93+
${MKDIR} -p ${TESTDIR}/tests
94+
${RM} "$@.d"
95+
$(COMPILE.cc) -g `cppunit-config --cflags` -MMD -MP -MF "$@.d" -o ${TESTDIR}/tests/ExerciseTest.o tests/ExerciseTest.cpp
96+
97+
98+
${TESTDIR}/tests/exerciseTestRunner.o: tests/exerciseTestRunner.cpp
99+
${MKDIR} -p ${TESTDIR}/tests
100+
${RM} "$@.d"
101+
$(COMPILE.cc) -g `cppunit-config --cflags` -MMD -MP -MF "$@.d" -o ${TESTDIR}/tests/exerciseTestRunner.o tests/exerciseTestRunner.cpp
102+
103+
104+
${OBJECTDIR}/Data/Exercise_nomain.o: ${OBJECTDIR}/Data/Exercise.o Data/Exercise.cpp
105+
${MKDIR} -p ${OBJECTDIR}/Data
106+
@NMOUTPUT=`${NM} ${OBJECTDIR}/Data/Exercise.o`; \
107+
if (echo "$$NMOUTPUT" | ${GREP} '|main$$') || \
108+
(echo "$$NMOUTPUT" | ${GREP} 'T main$$') || \
109+
(echo "$$NMOUTPUT" | ${GREP} 'T _main$$'); \
110+
then \
111+
${RM} "$@.d";\
112+
$(COMPILE.cc) -g -Dmain=__nomain -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Data/Exercise_nomain.o Data/Exercise.cpp;\
113+
else \
114+
${CP} ${OBJECTDIR}/Data/Exercise.o ${OBJECTDIR}/Data/Exercise_nomain.o;\
115+
fi
116+
117+
${OBJECTDIR}/main_nomain.o: ${OBJECTDIR}/main.o main.cpp
118+
${MKDIR} -p ${OBJECTDIR}
119+
@NMOUTPUT=`${NM} ${OBJECTDIR}/main.o`; \
120+
if (echo "$$NMOUTPUT" | ${GREP} '|main$$') || \
121+
(echo "$$NMOUTPUT" | ${GREP} 'T main$$') || \
122+
(echo "$$NMOUTPUT" | ${GREP} 'T _main$$'); \
123+
then \
124+
${RM} "$@.d";\
125+
$(COMPILE.cc) -g -Dmain=__nomain -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/main_nomain.o main.cpp;\
126+
else \
127+
${CP} ${OBJECTDIR}/main.o ${OBJECTDIR}/main_nomain.o;\
128+
fi
129+
130+
# Run Test Targets
131+
.test-conf:
132+
@if [ "${TEST}" = "" ]; \
133+
then \
134+
${TESTDIR}/TestFiles/f2 || true; \
135+
else \
136+
./${TEST} || true; \
137+
fi
138+
139+
# Clean Targets
140+
.clean-conf: ${CLEAN_SUBPROJECTS}
141+
${RM} -r ${CND_BUILDDIR}/${CND_CONF}
142+
${RM} ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lifttrack.exe
143+
144+
# Subprojects
145+
.clean-subprojects:
146+
147+
# Enable dependency checking
148+
.dep.inc: .depcheck-impl
149+
150+
include .dep.inc

0 commit comments

Comments
 (0)