<commit_before>/*! @file
 *
 *  @brief Do I need a Parker
 *
 *  This module contains the routines that drive the dinapd daemon.
 *
 *  @author APope
 *  @date 20-02-2016
 */
#ifndef DINAP_H
#define DINAP_H

#include <string>

typedef enum
{
  STATE_NSW,
  STATE_ACT,
  STATE_NT,
  STATE_QLD,
  STATE_SA,
  STATE_TAS,
  STATE_VIC,
  STATE_WA
} TSTATE;

class DINAP
{
private:
  TSTATE location;  /*!< Location of user within Australia. */
  int parker_temp;  /*!< Optimal Parker temperature for User. */
  int shorts_temp;  /*!< Optimal Shorts temperature for User. */

  /*! @brief Gets weather info from online source
   *
   *  @return TRUE - If data was scraped succesfully.
   */
  bool scrapeWeatherData(void);

  /*! @brief Compare optimal user temperature to scraped temperature
   *
   *  @param scrapedTemp - The scraped temperature from online source
   *
   *  @return void
   */
  void compareUserTemp(int scrapedTemp);

  /*! @brief Sends Pop-up weather notifications
   *
   *  @param summary - The message summary.<commit_msg>Dinap.h: - Moving the TSTATE enum definition to types.h so that is accessible from multiple modules<commit_after>/*! @file
 *
 *  @brief Do I need a Parker
 *
 *  This module contains the routines that drive the dinapd daemon.
 *
 *  @author APope
 *  @date 20-02-2016
 */
#ifndef DINAP_H
#define DINAP_H

#include <string>
#include "types.h"

class DINAP
{
private:
  TSTATE location;  /*!< Location of user within Australia. */
  int parker_temp;  /*!< Optimal Parker temperature for User. */
  int shorts_temp;  /*!< Optimal Shorts temperature for User. */

  /*! @brief Gets weather info from online source
   *
   *  @return TRUE - If data was scraped succesfully.
   */
  bool scrapeWeatherData(void);

  /*! @brief Compare optimal user temperature to scraped temperature
   *
   *  @param scrapedTemp - The scraped temperature from online source
   *
   *  @return void
   */
  void compareUserTemp(int scrapedTemp);

  /*! @brief Sends Pop-up weather notifications
   *
   *  @param summary - The message summary.
{'fraction_non_alphanumeric': 0.0988851187590887, 'fraction_numerical': 0.007755695588948134, 'mean_word_length': 3.128, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1300489', 'n_tokens_mistral': 690, 'n_tokens_neox': 652, 'n_words': 224}