r261: Use explicit std:: namespace
[ctsim.git] / include / array2dfile.h
index e5276e793f9a1f6ef2b6a5b5efe9286ec7368030..21023dc3c33f83e63646ec0f4c04717a1039aaf4 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: array2dfile.h,v 1.11 2000/12/16 03:29:02 kevin Exp $
+**  $Id: array2dfile.h,v 1.12 2000/12/16 06:12:47 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -44,8 +44,6 @@
 #include "fnetorderstream.h"
 #include "array2d.h"
 
-using namespace std;
-
 class Array2dFileLabel
 {
 public:
@@ -63,7 +61,7 @@ public:
 
     ~Array2dFileLabel();
 
-    const string& getLabelString (void) const
+    const std::string& getLabelString (void) const
        { return m_strLabel; }
 
     kfloat64 getCalcTime (void) const
@@ -78,17 +76,17 @@ public:
     int getLabelType (void) const
        { return m_labelType; }
 
-    string& setLabelString (const char* const str)
+       std::string& setLabelString (const char* const str)
        { m_strLabel = str; return (m_strLabel); }
 
-    string& setLabelString (const string& str)
+       std::string& setLabelString (const std::string& str)
        { m_strLabel = str; return (m_strLabel); }
 
     void setDateTime (int year, int month, int day, int hour, int minute, int second);
 
     void getDateTime (int& year, int& month, int& day, int& hour, int& minute, int& second) const;
 
-    const string& getDateString () const;
+    const std::string& getDateString () const;
 
     void print (std::ostream& os) const;
 
@@ -106,10 +104,10 @@ private:
     kuint16 m_hour;
     kuint16 m_minute;
     kuint16 m_second;
-    string m_strLabel;
+       std::string m_strLabel;
     kfloat64 m_calcTime;
 
-    mutable string m_strDate;
+    mutable std::string m_strDate;
 };
 
 
@@ -173,26 +171,26 @@ public:
 
   bool fileRead (const char* const filename);
 
-  bool fileRead (const string& filename);
+  bool fileRead (const std::string& filename);
 
   bool fileWrite (const char* const filename);
 
-  bool fileWrite (const string& filename);
+  bool fileWrite (const std::string& filename);
 
-  const string& getFilename (void) const 
+  const std::string& getFilename (void) const 
       {  return m_filename; }
 
   void printLabels (std::ostream& os) const;
 
-  typedef vector<Array2dFileLabel*>::iterator labelIterator;
-  typedef vector<Array2dFileLabel*>::const_iterator constLabelIterator;
+  typedef std::vector<Array2dFileLabel*>::iterator labelIterator;
+  typedef std::vector<Array2dFileLabel*>::const_iterator constLabelIterator;
 
  protected:
-  typedef vector<Array2dFileLabel*> labelContainer;
+        typedef std::vector<Array2dFileLabel*> labelContainer;
 
   static const kuint16 m_signature;
   kuint16 m_headersize;
-  string  m_filename;
+  std::string  m_filename;
 
   kuint16 m_pixelSize;
   kuint16 m_pixelFormat;