![]()  | 
  
    Leosac
    0.8.0
    
   Open Source Access Control 
   | 
 
Load a list of schedules from a boost::property_tree. More...
#include <XmlScheduleLoader.hpp>
 Collaboration diagram for Leosac::Tools::XmlScheduleLoader:Public Member Functions | |
| bool | load (const boost::property_tree::ptree &t) | 
| Load all schedules from a tree and stores them in the map.  More... | |
| const std::map< std::string, ISchedulePtr > & | schedules () const | 
| Access the map of stored schedules.  More... | |
Static Public Member Functions | |
| static int | week_day_to_int (const std::string &day) | 
| Helper function.  More... | |
Private Member Functions | |
| bool | extract_one (const boost::property_tree::ptree &node) | 
| Adds a new schedule to the map.  More... | |
Private Attributes | |
| std::map< std::string, ISchedulePtr > | schedules_ | 
Load a list of schedules from a boost::property_tree.
The format is defined here. This class was introduced to avoid code duplication.
Definition at line 36 of file XmlScheduleLoader.hpp.
      
  | 
  private | 
Adds a new schedule to the map.
Definition at line 71 of file XmlScheduleLoader.cpp.
| bool XmlScheduleLoader::load | ( | const boost::property_tree::ptree & | t | ) | 
Load all schedules from a tree and stores them in the map.
Definition at line 49 of file XmlScheduleLoader.cpp.
| const std::map< std::string, ISchedulePtr > & XmlScheduleLoader::schedules | ( | ) | const | 
Access the map of stored schedules.
Definition at line 111 of file XmlScheduleLoader.cpp.
      
  | 
  static | 
Helper function.
Definition at line 29 of file XmlScheduleLoader.cpp.
      
  | 
  private | 
Definition at line 60 of file XmlScheduleLoader.hpp.