]> pilppa.org Git - lib1wire.git/blobdiff - src/Date.hh
Use pointers in date comparison functions.
[lib1wire.git] / src / Date.hh
index 2d6fd757723a92d200b61a124383e0e04ba6fc7a..3c019995683b3f61be43b1925aa74f5a42bcd9ba 100644 (file)
@@ -29,17 +29,17 @@ namespace plp {
                        void inc_seconds(int seconds);
                        Date *clone();
                        void copy(Date *date);
-                       bool before(Date date2);
-                       bool equals(Date date2);
-                       std::string to_string();
-
+                       bool before(Date *date2);
+                       bool equals(Date *date2);
                        int     year;
                        int     month;
                        int     day;
                        int     hour;
                        int     min;
                        int     sec;
-               private:
+                       std::string to_string();
+               protected:
+                       std::string to_sortable_string();
                        //static const int arr_days_per_month[];
        };
 }