eFinancialPlanner  V1.0 (proof of concept)
Personal Financial Planning based on Maslowian Portfolio Theory
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
follow_up.class.cpp
Go to the documentation of this file.
1 
7 class follow_up : public simulation
8 {
9 public:
10  follow_up(int investor);
11  void parse_dashboard();
12 };
13 
18  : simulation(investor)
19 {
20  //cout << ""; ///< this constructor does nothing more than launching the previous class' constructor
21 }
22 
27 {
28  int g;
29  cout << "<div class=\"alert alert-info\">";
30  cout << "<h3>" << t_dashboard << " at " << mNbr2dateStr(get_nbrMonths2simulate()) << "</h3>";
31  cout << "<table border=\"1\" class=\"followupDash\">";
32  cout << "<tr><th>Nr.</th><th>Priority</th><th>Description</th><th>Previous color at " << mNbr2dateStr(0) << "</th>";
33  cout << "<th>New Color at " << mNbr2dateStr(get_nbrMonths2simulate()) << " or at goal-realization</th></tr>";
34  for (g = 1; g <= get_nbr_goals(); g++)
35  {
36  cout << "<tr>";
37  cout << "<td>" << g << "</td>";
38  cout << "<td>" << this->goalZ[g].priority << "</td>";
39  cout << "<td>" << this->goalZ[g].description << "</td>";
40  cout << "<td class=\"" << hh.get_box_color_class(this->goalZ[g].color) << "\">" << hh.get_glyphicon(this->goalZ[g].color) << "</td>";
41  cout << "<td class=\"" << hh.get_box_color_class(this->goalZ[g].color_followup) << "\">" << hh.get_glyphicon(this->goalZ[g].color_followup) << "</td>";
42  cout << "</tr>";
43  }
44  cout << "</table>" << "</div>" << endl;
45 }
46 
47 
follow_up(int investor)
const string t_dashboard
Definition: texts_Eng_UK.h:163
int get_nbrMonths2simulate()
returns the number of months to simulate as in "37"
void parse_dashboard()
html_helper hh
own c++ classes
Definition: efp.cpp:180
string get_box_color_class(string the_color)
string get_glyphicon(string the_color)
std::map< int, aGOAL > goalZ
map containing all goals
string mNbr2dateStr(int monthNbr=0)