[cig-commits] r13072 - cs/cigma/trunk/src
luis at geodynamics.org
luis at geodynamics.org
Wed Oct 15 10:12:50 PDT 2008
Author: luis
Date: 2008-10-15 10:12:50 -0700 (Wed, 15 Oct 2008)
New Revision: 13072
Modified:
cs/cigma/trunk/src/DataPath.cpp
cs/cigma/trunk/src/DataPath.h
Log:
Added assignment operator to cigma::DataPath
Modified: cs/cigma/trunk/src/DataPath.cpp
===================================================================
--- cs/cigma/trunk/src/DataPath.cpp 2008-10-15 09:08:20 UTC (rev 13071)
+++ cs/cigma/trunk/src/DataPath.cpp 2008-10-15 17:12:50 UTC (rev 13072)
@@ -10,7 +10,7 @@
// ----------------------------------------------------------------------------
-static void colon_split(const string &s, vector<string> &ss)
+static void colon_split(const string& s, vector<string>& ss)
{
boost::split(ss, s, boost::is_any_of(":"), boost::token_compress_on);
}
@@ -52,12 +52,18 @@
}
}
-DataPath::DataPath(const DataPath &dp)
+DataPath::DataPath(const DataPath& dp)
{
fname = dp.fname;
dname = dp.dname;
}
+DataPath& DataPath::operator=(const DataPath& dp)
+{
+ fname = dp.fname;
+ dname = dp.dname;
+}
+
DataPath::~DataPath()
{
}
Modified: cs/cigma/trunk/src/DataPath.h
===================================================================
--- cs/cigma/trunk/src/DataPath.h 2008-10-15 09:08:20 UTC (rev 13071)
+++ cs/cigma/trunk/src/DataPath.h 2008-10-15 17:12:50 UTC (rev 13072)
@@ -9,7 +9,8 @@
public:
DataPath(std::string p);
- DataPath(const DataPath &dp);
+ DataPath(const DataPath& dp);
+ DataPath& operator=(const DataPath& dp);
~DataPath();
bool exists();
More information about the cig-commits
mailing list