aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSanJacobs2022-04-23 14:35:54 +0200
committerSanJacobs2022-04-23 14:35:54 +0200
commita522e50d21e366e489d19fbd174d65bdb3d19988 (patch)
tree96d527279e62c5ec1c41010c9b3eed41b1a6ba54 /src/main.cpp
parent2acfa2f354f856eb7672db36cd91d5cf1862ceca (diff)
downloadsatscalc-a522e50d21e366e489d19fbd174d65bdb3d19988.tar.gz
satscalc-a522e50d21e366e489d19fbd174d65bdb3d19988.tar.bz2
satscalc-a522e50d21e366e489d19fbd174d65bdb3d19988.zip
Started work on splitting price-segments
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-xsrc/main.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e554fb1..21b25cc 100755
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -16,11 +16,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see https://www.gnu.org/licenses/
*/
-// TODO: Make a system that effeciently stores a range of time, and lets you split it up neatly
-// The slicing function could use a pointer to output the posterior half of the time range into
-// The slicing process should figure out how many slices will need to be made before doing the slices, so a correctly sized array can be allocated on the stack instead of using a vec on the heap
-
+// TODO: Write function/method/constructor that slices a workday up into the differently priced segments
// TODO: Make the system that determines the price of each of those slices of time
+// TODO: Add ruleset selector (That only allows you to pick the advert ruleset at first)
+// TODO: Make cool logo
#include <iostream>
#include "time.h"
@@ -41,6 +40,7 @@ int main(int argc, char* argv[])
std::cout << timeprint(workday) << std::endl;
+
std::cout << "\n\n --- TIME MATH TEST ---\n\n";
std::cout << "Difference between calltime and wraptime:\n";
@@ -62,9 +62,12 @@ int main(int argc, char* argv[])
std::cout << "\nSplitting second_half at erronious point...\n";
moment erronious_splitpoint{0, 10, 27, 11, 2010};
- std::cout << timeprint(timesplit(second_half, erronious_splitpoint));
+ std::cout << timeprint(timesplit(second_half, erronious_splitpoint)) << "\n";
+
+ std::cout << "\n\n --- TIME WINDING TEST ---\n\n";
+
moment testtime{30, 8, 25, 2, 2012};
std::cout << "Testtime: " << timeprint(testtime) << std::endl;
@@ -112,6 +115,11 @@ int main(int argc, char* argv[])
std::cout << "-----\nStep 1: Adding the days\n\n";
+ bool not_done = true;
+ while(not_done) {
+
+ }
+
return 0;
}
}