-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\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
+\r