GridComputing
Job Management in Grid Computing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
menugrid.cpp File Reference
#include "menugrid.h"
#include "utils.h"
#include "consolereader.h"
#include "user.h"
#include "machine.h"
#include "job.h"
#include "menu.h"
#include "gridmanager.h"
#include "gridnetwork.h"
#include "grid.h"
#include "loader.h"
#include "software.h"
#include <iostream>
#include <typeinfo>
#include <functional>
#include <iomanip>

Functions

void NewGrid (GridNetwork *gn)
 
void ChangeGridName (GridNetwork *gn)
 
void ChangeGridTopic (GridNetwork *gn)
 
void RemoveGrid (GridNetwork *gn)
 
void SearchGrids (GridNetwork *gn)
 
void SearchRemovedUsers (GridManager *gm)
 
void NewAcademicUser (GridManager *gm)
 
void NewEnterpriseUser (GridManager *gm)
 
void RemoveUser (GridManager *gm)
 
void NewMachine (GridManager *gm)
 
void NewPriorityMachine (GridManager *gm)
 
void RemoveMachine (GridManager *gm)
 
void RemovePriorityMachine (GridManager *gm)
 
void NewJob (GridManager *gm)
 
void SearchUsers (GridManager *gm)
 
void SearchMachines (GridManager *gm)
 
void SearchPriorityMachines (GridManager *gm)
 
void SearchJobs (GridManager *gm)
 
void ChangeUserInfo (GridManager *gm)
 Menu handling of update of Users.
 
void ChangeMachineInfo (GridManager *gm)
 Menu handling of update of Machines.
 
void ChangePriorityMachineInfo (GridManager *gm)
 Menu handling of update of Priority Machines.
 
void ChangeGridManagerInfo (GridNetwork *gn)
 Menu handling of update of GridManager.
 

Variables

static std::function< bool(std::string)> _namePredicate
 

Function Documentation

void ChangeGridManagerInfo ( GridNetwork gn)

Menu handling of update of GridManager.

void ChangeGridName ( GridNetwork gn)
void ChangeGridTopic ( GridNetwork gn)
void ChangeMachineInfo ( GridManager gm)

Menu handling of update of Machines.

void ChangePriorityMachineInfo ( GridManager gm)

Menu handling of update of Priority Machines.

void ChangeUserInfo ( GridManager gm)

Menu handling of update of Users.

void NewAcademicUser ( GridManager gm)
void NewEnterpriseUser ( GridManager gm)
void NewGrid ( GridNetwork gn)
void NewJob ( GridManager gm)
void NewMachine ( GridManager gm)
void NewPriorityMachine ( GridManager gm)
void RemoveGrid ( GridNetwork gn)
void RemoveMachine ( GridManager gm)
void RemovePriorityMachine ( GridManager gm)
void RemoveUser ( GridManager gm)
void SearchGrids ( GridNetwork gn)
void SearchJobs ( GridManager gm)
void SearchMachines ( GridManager gm)
void SearchPriorityMachines ( GridManager gm)
void SearchRemovedUsers ( GridManager gm)
void SearchUsers ( GridManager gm)

Variable Documentation

std::function<bool(std::string)> _namePredicate
static
Initial value:
= [](const std::string& val)
{
if (val.size() <= 0)
{
std::cout << "Name cannot be empty." << std::endl << "Please try again." << std::endl;
return false;
}
else if (val.size() > 25)
{
std::cout << "Name cannot have more than 25 characters." << std::endl << "Please try again." << std::endl;
return false;
}
return true;
}