Skip to content
Permalink
Browse files

Reorder and group function declarations

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
  • Loading branch information...
lauft committed Mar 15, 2019
1 parent 58c392b commit 9fcadaee1c93fe1aa5bc9c83ec8b4da6d14cece4
Showing with 9 additions and 18 deletions.
  1. +9 −18 src/Chart.h
@@ -40,33 +40,24 @@ class Chart
std::string render (const Interval&, const std::vector <Interval>&, const std::vector <Range>&, const std::map <Datetime, std::string>&);

private:
unsigned long getIndentSize ();

std::pair <int, int> determineHourRange (const Interval&, const std::vector <Interval>&);

std::string renderAxis (int, int, const Color&, const Color&, int);

std::string renderDay (Datetime&, const Color&);
std::string renderHolidays (const std::map <Datetime, std::string>&);
std::string renderMonth (const Datetime&, const Datetime&);

std::string renderSubTotal (time_t, const std::string&);
std::string renderSummary (const std::string&, const Interval&, const std::vector <Range>&, const std::vector <Interval>&);
std::string renderTotal (time_t);
std::string renderWeek (const Datetime&, const Datetime&);

std::string renderWeekday (Datetime&, const Color&);

std::string renderDay (Datetime&, const Color&);

Color getDayColor (const Datetime&, const Datetime&, const std::map <Datetime, std::string>&, const Color&, const Color&);

std::string renderTotal (time_t);

std::string renderSubTotal (time_t, const std::string&);

void renderExclusionBlocks (std::vector<Composite>&, const Datetime&, int, int, const std::vector<Range>&, const Color&, const Color&);

void renderInterval (std::vector<Composite>&, const Datetime&, const Interval&, int, time_t&);

std::string renderHolidays (const std::map <Datetime, std::string>&);
unsigned long getIndentSize ();

std::string renderSummary (const std::string&, const Interval&, const std::vector <Range>&, const std::vector <Interval>&);
std::pair <int, int> determineHourRange (const Interval&, const std::vector <Interval>&);

Color getDayColor (const Datetime&, const Datetime&, const std::map <Datetime, std::string>&, const Color&, const Color&);

const bool with_label_month;
const bool with_label_week;

0 comments on commit 9fcadae

Please sign in to comment.
You can’t perform that action at this time.