Add some explicit declarations to constructors.
[libdcp.git] / src / local_time.h
index b1751f8b0e884b8a620ad21ab24f196868fa7895..9407aeed5962a586d2b64857e5f80495963c6a7f 100644 (file)
@@ -1,20 +1,20 @@
 /*
     Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
 
-    This program is free software; you can redistribute it and/or modify
+    This file is part of libdcp.
+
+    libdcp is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
 
-    This program is distributed in the hope that it will be useful,
+    libdcp is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
+    along with libdcp.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 /** @file  src/local_time.h
@@ -44,13 +44,17 @@ class LocalTime
 {
 public:
        LocalTime ();
-       LocalTime (boost::posix_time::ptime);
-       LocalTime (std::string);
+       explicit LocalTime (boost::posix_time::ptime);
+       LocalTime (boost::posix_time::ptime, int tz_hour, int tz_minute);
+       explicit LocalTime (std::string);
 
        std::string as_string (bool with_millisecond = false) const;
        std::string date () const;
        std::string time_of_day (bool with_millisecond = false) const;
 
+       bool operator== (LocalTime const & other) const;
+       bool operator!= (LocalTime const & other) const;
+
 private:
        friend class ::local_time_test;
 
@@ -69,6 +73,9 @@ private:
        int _tz_minute; ///< minutes by which this time is offset from UTC
 };
 
+std::ostream&
+operator<< (std::ostream& s, LocalTime const & t);
+
 }
 
 #endif