- 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: " << endl;
- os << " " << m_strLabel << endl;
- os << " calc time = " << m_calcTime << " secs" << endl;
- os << " Timestamp = " << getDateString() << endl;
- } else if (m_labelType == L_USER) {
- os << "Note: " << m_strLabel << endl;
- os << " Timestamp = %s" << getDateString() << endl;
- } else {
- os << "Unknown (" << m_labelType << "): " << m_strLabel << endl;
- os << " Timestamp = %s" << getDateString() << endl;
- }
-}
-
+ 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\r
+Array2dFileLabel::print (std::ostream& os) const\r
+{\r
+ if (m_labelType == L_HISTORY) {\r
+ os << "History: " << std::endl;\r
+ os << " " << m_strLabel << std::endl;\r
+ os << " calc time = " << m_calcTime << " secs" << std::endl;\r
+ os << " Timestamp = " << getDateString() << std::endl;\r
+ } else if (m_labelType == L_USER) {\r
+ os << "Note: " << m_strLabel << std::endl;\r
+ os << " Timestamp = %s" << getDateString() << std::endl;\r
+ } else {\r
+ os << "Unknown (" << m_labelType << "): " << m_strLabel << std::endl;\r
+ os << " Timestamp = %s" << getDateString() << std::endl;\r
+ }\r
+}\r
+\r
+void\r
+Array2dFileLabel::printBrief (std::ostream& os) const\r
+{\r
+ if (m_labelType == L_HISTORY) {\r
+ os << "History (";\r
+ if (m_calcTime > 0)\r
+ os << m_calcTime << " secs, ";\r
+ os << getDateString() << "): " << m_strLabel << std::endl;\r
+ } else if (m_labelType == L_USER) {\r
+ os << "Note (" << getDateString() << "): " << m_strLabel << std::endl;\r
+ } else {\r
+ os << "Unknown (" << getDateString() << "): " << m_strLabel << std::endl;\r
+ }\r
+}\r
+
+void\r
+Array2dFileLabel::printBrief (std::ostringstream& os) const\r
+{\r
+ if (m_labelType == L_HISTORY) {\r
+ os << "History (";\r
+ if (m_calcTime > 0)\r
+ os << m_calcTime << " secs, ";\r
+ os << getDateString().c_str() << "): " << m_strLabel.c_str() << "\n";
+ } else if (m_labelType == L_USER) {\r
+ os << "Note (" << getDateString() << "): " << m_strLabel << "\n";
+ } else {\r
+ os << "Unknown (" << getDateString() << "): " << m_strLabel << "\n";
+ }\r
+}\r
+\r