+Array2dFileLabel::Array2dFileLabel (const Array2dFileLabel& rhs)
+{
+ m_calcTime = rhs.m_calcTime;
+ m_labelType = rhs.m_labelType;
+ m_strLabel = rhs.m_strLabel;
+ m_year = rhs.m_year; m_month = rhs.m_month; m_day = rhs.m_day;
+ m_hour = rhs.m_hour; m_minute = rhs.m_minute; m_second = rhs.m_second;
+}
+
+Array2dFileLabel&
+Array2dFileLabel::operator= (const Array2dFileLabel& rhs)
+{
+ m_calcTime = rhs.m_calcTime;
+ m_labelType = rhs.m_labelType;
+ m_strLabel = rhs.m_strLabel;
+ m_year = rhs.m_year; m_month = rhs.m_month; m_day = rhs.m_day;
+ m_hour = rhs.m_hour; m_minute = rhs.m_minute; m_second = rhs.m_second;
+
+ return (*this);
+}
+
+void
+Array2dFileLabel::print (std::ostream& os) const
+{
+ if (m_labelType == L_HISTORY) {
+ os << "History: " << std::endl;
+ os << " " << m_strLabel << std::endl;
+ os << " calc time = " << m_calcTime << " secs" << std::endl;
+ os << " Timestamp = " << getDateString() << std::endl;
+ } else if (m_labelType == L_USER) {
+ os << "Note: " << m_strLabel << std::endl;
+ os << " Timestamp = %s" << getDateString() << std::endl;
+ } else {
+ os << "Unknown (" << m_labelType << "): " << m_strLabel << std::endl;
+ os << " Timestamp = %s" << getDateString() << std::endl;
+ }
+}
+
+void
+Array2dFileLabel::printBrief (std::ostream& os) const
+{
+ if (m_labelType == L_HISTORY) {
+ os << "History (";
+ if (m_calcTime > 0)
+ os << m_calcTime << " secs, ";
+ os << getDateString() << "): " << m_strLabel << std::endl;
+ } else if (m_labelType == L_USER) {
+ os << "Note (" << getDateString() << "): " << m_strLabel << std::endl;
+ } else {
+ os << "Unknown (" << getDateString() << "): " << m_strLabel << std::endl;
+ }
+}
+
+void
+Array2dFileLabel::printBrief (std::ostringstream& os) const
+{
+ if (m_labelType == L_HISTORY) {
+ os << "History (";
+ if (m_calcTime > 0)
+ os << m_calcTime << " secs, ";
+ os << getDateString().c_str() << "): " << m_strLabel.c_str() << "\n";
+ } else if (m_labelType == L_USER) {
+ os << "Note (" << getDateString() << "): " << m_strLabel << "\n";
+ } else {
+ os << "Unknown (" << getDateString() << "): " << m_strLabel << "\n";
+ }
+}
+
+