Skip to content

Commit

Permalink
move includes from .hpp to .cpp if only used there
Browse files Browse the repository at this point in the history
  • Loading branch information
ikluft committed Dec 16, 2023
1 parent 2e637e8 commit 32a557f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/cpp/libtzsolar/libtzsolar/libtzsolar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

#include "libtzsolar.hpp"
#include <iomanip>
#include <sstream>
#include <cmath>

// generate a solar time zone name
Expand Down
5 changes: 1 addition & 4 deletions src/cpp/libtzsolar/libtzsolar/libtzsolar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
* libtzsolar.hpp - solar time zone library contants and public interface
*/

#include <unordered_map>
#include <string>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <regex>
#include <boost/optional.hpp>
Expand All @@ -15,7 +12,7 @@
class TZSolar {
public:

// time zone name regular expressions
// time zone constants: names, regular expressions and numbers
const std::string tzsolar_lon_zone_str = std::string ( "(Lon0[0-9][0-9][EW])|(Lon1[0-7][0-9][EW])|(Lon180[EW])" );
const std::string tzsolar_hour_zone_str = std::string ( "(East|West)(0[0-9]|1[0-2])" );
const std::regex tzsolar_lon_zone_re = std::regex ( tzsolar_lon_zone_str );
Expand Down

0 comments on commit 32a557f

Please sign in to comment.