summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-02-16 14:37:44 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-02-16 14:37:44 +0100
commit27e23f29f368e06315f2ea381ef38a3affa93c64 (patch)
tree0cac9c94878909bb1eff59c8d4ae3e9b815aa76e
parentf591df5ff62deb8de2956cc8200db4034fb6ea05 (diff)
downloadastra-27e23f29f368e06315f2ea381ef38a3affa93c64.tar.gz
astra-27e23f29f368e06315f2ea381ef38a3affa93c64.tar.bz2
astra-27e23f29f368e06315f2ea381ef38a3affa93c64.tar.xz
astra-27e23f29f368e06315f2ea381ef38a3affa93c64.zip
Remove using namespace std; from headers
-rw-r--r--include/astra/Algorithm.h2
-rw-r--r--include/astra/ArtAlgorithm.h2
-rw-r--r--include/astra/AstraObjectManager.h16
-rw-r--r--include/astra/BackProjectionAlgorithm.h2
-rw-r--r--include/astra/CglsAlgorithm.h2
-rw-r--r--include/astra/CudaBackProjectionAlgorithm3D.h2
-rw-r--r--include/astra/CudaCglsAlgorithm3D.h2
-rw-r--r--include/astra/CudaDartMaskAlgorithm.h2
-rw-r--r--include/astra/CudaDartMaskAlgorithm3D.h2
-rw-r--r--include/astra/CudaDartSmoothingAlgorithm.h2
-rw-r--r--include/astra/CudaDartSmoothingAlgorithm3D.h2
-rw-r--r--include/astra/CudaDataOperationAlgorithm.h8
-rw-r--r--include/astra/CudaFDKAlgorithm3D.h2
-rw-r--r--include/astra/CudaForwardProjectionAlgorithm.h2
-rw-r--r--include/astra/CudaForwardProjectionAlgorithm3D.h2
-rw-r--r--include/astra/CudaReconstructionAlgorithm2D.h2
-rw-r--r--include/astra/CudaRoiSelectAlgorithm.h2
-rw-r--r--include/astra/CudaSirtAlgorithm3D.h2
-rw-r--r--include/astra/FilteredBackProjectionAlgorithm.h2
-rw-r--r--include/astra/ForwardProjectionAlgorithm.h2
-rw-r--r--include/astra/Globals.h4
-rw-r--r--include/astra/ReconstructionAlgorithm2D.h2
-rw-r--r--include/astra/ReconstructionAlgorithm3D.h2
-rw-r--r--include/astra/SartAlgorithm.h2
-rw-r--r--include/astra/SirtAlgorithm.h2
-rw-r--r--include/astra/TypeList.h4
-rw-r--r--include/astra/XMLDocument.h8
-rw-r--r--include/astra/XMLNode.h56
-rw-r--r--matlab/mex/mexHelpFunctions.h4
29 files changed, 70 insertions, 74 deletions
diff --git a/include/astra/Algorithm.h b/include/astra/Algorithm.h
index 2273a83..b0d046f 100644
--- a/include/astra/Algorithm.h
+++ b/include/astra/Algorithm.h
@@ -61,7 +61,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/ArtAlgorithm.h b/include/astra/ArtAlgorithm.h
index 697456a..73f63e3 100644
--- a/include/astra/ArtAlgorithm.h
+++ b/include/astra/ArtAlgorithm.h
@@ -149,7 +149,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/AstraObjectManager.h b/include/astra/AstraObjectManager.h
index 97fde40..579ff27 100644
--- a/include/astra/AstraObjectManager.h
+++ b/include/astra/AstraObjectManager.h
@@ -194,7 +194,7 @@ int CAstraObjectManager<T>::store(T* _pDataObject)
template <typename T>
bool CAstraObjectManager<T>::hasIndex(int _iIndex) const
{
- typename map<int,T*>::const_iterator it = m_mIndexToObject.find(_iIndex);
+ typename std::map<int,T*>::const_iterator it = m_mIndexToObject.find(_iIndex);
return it != m_mIndexToObject.end();
}
@@ -203,7 +203,7 @@ bool CAstraObjectManager<T>::hasIndex(int _iIndex) const
template <typename T>
T* CAstraObjectManager<T>::get(int _iIndex) const
{
- typename map<int,T*>::const_iterator it = m_mIndexToObject.find(_iIndex);
+ typename std::map<int,T*>::const_iterator it = m_mIndexToObject.find(_iIndex);
if (it != m_mIndexToObject.end())
return it->second;
else
@@ -216,7 +216,7 @@ template <typename T>
void CAstraObjectManager<T>::remove(int _iIndex)
{
// find data
- typename map<int,T*>::iterator it = m_mIndexToObject.find(_iIndex);
+ typename std::map<int,T*>::iterator it = m_mIndexToObject.find(_iIndex);
if (it == m_mIndexToObject.end())
return;
// delete data
@@ -232,7 +232,7 @@ void CAstraObjectManager<T>::remove(int _iIndex)
template <typename T>
int CAstraObjectManager<T>::getIndex(const T* _pObject) const
{
- for (typename map<int,T*>::const_iterator it = m_mIndexToObject.begin(); it != m_mIndexToObject.end(); it++) {
+ for (typename std::map<int,T*>::const_iterator it = m_mIndexToObject.begin(); it != m_mIndexToObject.end(); it++) {
if ((*it).second == _pObject) return (*it).first;
}
return 0;
@@ -244,7 +244,7 @@ int CAstraObjectManager<T>::getIndex(const T* _pObject) const
template <typename T>
void CAstraObjectManager<T>::clear()
{
- for (typename map<int,T*>::iterator it = m_mIndexToObject.begin(); it != m_mIndexToObject.end(); it++) {
+ for (typename std::map<int,T*>::iterator it = m_mIndexToObject.begin(); it != m_mIndexToObject.end(); it++) {
// delete data
delete (*it).second;
(*it).second = 0;
@@ -257,7 +257,7 @@ void CAstraObjectManager<T>::clear()
// Print info to string
template <typename T>
std::string CAstraObjectManager<T>::getInfo(int index) const {
- typename map<int,T*>::const_iterator it = m_mIndexToObject.find(index);
+ typename std::map<int,T*>::const_iterator it = m_mIndexToObject.find(index);
if (it == m_mIndexToObject.end())
return "";
const T* pObject = it->second;
@@ -277,8 +277,8 @@ std::string CAstraObjectManager<T>::info() {
std::stringstream res;
res << "id init description" << std::endl;
res << "-----------------------------------------" << std::endl;
- for (typename map<int,T*>::const_iterator it = m_mIndexToObject.begin(); it != m_mIndexToObject.end(); it++) {
- res << getInfo(it->first) << endl;
+ for (typename std::map<int,T*>::const_iterator it = m_mIndexToObject.begin(); it != m_mIndexToObject.end(); it++) {
+ res << getInfo(it->first) << std::endl;
}
res << "-----------------------------------------" << std::endl;
return res.str();
diff --git a/include/astra/BackProjectionAlgorithm.h b/include/astra/BackProjectionAlgorithm.h
index 0d53567..dd67359 100644
--- a/include/astra/BackProjectionAlgorithm.h
+++ b/include/astra/BackProjectionAlgorithm.h
@@ -122,7 +122,7 @@ public:
*
* @return Map with all available identifier strings and their values.
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CglsAlgorithm.h b/include/astra/CglsAlgorithm.h
index c7eac73..7ce68bc 100644
--- a/include/astra/CglsAlgorithm.h
+++ b/include/astra/CglsAlgorithm.h
@@ -149,7 +149,7 @@ public:
*
* @return Map with all available identifier strings and their values.
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaBackProjectionAlgorithm3D.h b/include/astra/CudaBackProjectionAlgorithm3D.h
index 114d6f3..4bf1870 100644
--- a/include/astra/CudaBackProjectionAlgorithm3D.h
+++ b/include/astra/CudaBackProjectionAlgorithm3D.h
@@ -106,7 +106,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaCglsAlgorithm3D.h b/include/astra/CudaCglsAlgorithm3D.h
index 650aa27..138e677 100644
--- a/include/astra/CudaCglsAlgorithm3D.h
+++ b/include/astra/CudaCglsAlgorithm3D.h
@@ -113,7 +113,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaDartMaskAlgorithm.h b/include/astra/CudaDartMaskAlgorithm.h
index 2759add..e364de7 100644
--- a/include/astra/CudaDartMaskAlgorithm.h
+++ b/include/astra/CudaDartMaskAlgorithm.h
@@ -76,7 +76,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaDartMaskAlgorithm3D.h b/include/astra/CudaDartMaskAlgorithm3D.h
index 6dcd365..30ee64f 100644
--- a/include/astra/CudaDartMaskAlgorithm3D.h
+++ b/include/astra/CudaDartMaskAlgorithm3D.h
@@ -72,7 +72,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaDartSmoothingAlgorithm.h b/include/astra/CudaDartSmoothingAlgorithm.h
index dec8b6e..019cbf9 100644
--- a/include/astra/CudaDartSmoothingAlgorithm.h
+++ b/include/astra/CudaDartSmoothingAlgorithm.h
@@ -76,7 +76,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaDartSmoothingAlgorithm3D.h b/include/astra/CudaDartSmoothingAlgorithm3D.h
index 13bc7fc..9aee8ef 100644
--- a/include/astra/CudaDartSmoothingAlgorithm3D.h
+++ b/include/astra/CudaDartSmoothingAlgorithm3D.h
@@ -72,7 +72,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaDataOperationAlgorithm.h b/include/astra/CudaDataOperationAlgorithm.h
index 37391fb..79c5bd6 100644
--- a/include/astra/CudaDataOperationAlgorithm.h
+++ b/include/astra/CudaDataOperationAlgorithm.h
@@ -75,7 +75,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
@@ -110,10 +110,10 @@ protected:
CFloat32Data2D* m_pMask;
- vector<CFloat32Data2D*> m_pData;
- vector<float> m_fScalar;
+ std::vector<CFloat32Data2D*> m_pData;
+ std::vector<float> m_fScalar;
- string m_sOperation;
+ std::string m_sOperation;
};
diff --git a/include/astra/CudaFDKAlgorithm3D.h b/include/astra/CudaFDKAlgorithm3D.h
index 1c4c622..1189651 100644
--- a/include/astra/CudaFDKAlgorithm3D.h
+++ b/include/astra/CudaFDKAlgorithm3D.h
@@ -118,7 +118,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaForwardProjectionAlgorithm.h b/include/astra/CudaForwardProjectionAlgorithm.h
index 01661b1..95b3312 100644
--- a/include/astra/CudaForwardProjectionAlgorithm.h
+++ b/include/astra/CudaForwardProjectionAlgorithm.h
@@ -103,7 +103,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaForwardProjectionAlgorithm3D.h b/include/astra/CudaForwardProjectionAlgorithm3D.h
index 9dc889e..366e1f6 100644
--- a/include/astra/CudaForwardProjectionAlgorithm3D.h
+++ b/include/astra/CudaForwardProjectionAlgorithm3D.h
@@ -80,7 +80,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaReconstructionAlgorithm2D.h b/include/astra/CudaReconstructionAlgorithm2D.h
index 6852bb8..f7a311a 100644
--- a/include/astra/CudaReconstructionAlgorithm2D.h
+++ b/include/astra/CudaReconstructionAlgorithm2D.h
@@ -86,7 +86,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information.
*
diff --git a/include/astra/CudaRoiSelectAlgorithm.h b/include/astra/CudaRoiSelectAlgorithm.h
index 1b3f17f..bd46ddf 100644
--- a/include/astra/CudaRoiSelectAlgorithm.h
+++ b/include/astra/CudaRoiSelectAlgorithm.h
@@ -76,7 +76,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/CudaSirtAlgorithm3D.h b/include/astra/CudaSirtAlgorithm3D.h
index a0b8794..cfc5db2 100644
--- a/include/astra/CudaSirtAlgorithm3D.h
+++ b/include/astra/CudaSirtAlgorithm3D.h
@@ -127,7 +127,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/FilteredBackProjectionAlgorithm.h b/include/astra/FilteredBackProjectionAlgorithm.h
index 020c341..6545e7f 100644
--- a/include/astra/FilteredBackProjectionAlgorithm.h
+++ b/include/astra/FilteredBackProjectionAlgorithm.h
@@ -117,7 +117,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/ForwardProjectionAlgorithm.h b/include/astra/ForwardProjectionAlgorithm.h
index cd7a879..02e8894 100644
--- a/include/astra/ForwardProjectionAlgorithm.h
+++ b/include/astra/ForwardProjectionAlgorithm.h
@@ -155,7 +155,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/Globals.h b/include/astra/Globals.h
index 44a77b0..8375726 100644
--- a/include/astra/Globals.h
+++ b/include/astra/Globals.h
@@ -65,9 +65,9 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
#define ASTRA_ASSERT(a) assert(a)
-#define ASTRA_CONFIG_CHECK(value, type, msg) if (!(value)) { cout << "Configuration Error in " << type << ": " << msg << endl; return false; }
+#define ASTRA_CONFIG_CHECK(value, type, msg) if (!(value)) { std::cout << "Configuration Error in " << type << ": " << msg << std::endl; return false; }
-#define ASTRA_CONFIG_WARNING(type, msg) { cout << "Warning in " << type << ": " << msg << endl; }
+#define ASTRA_CONFIG_WARNING(type, msg) { std::cout << "Warning in " << type << ": " << msg << sdt::endl; }
#define ASTRA_DELETE(a) if (a) { delete a; a = NULL; }
diff --git a/include/astra/ReconstructionAlgorithm2D.h b/include/astra/ReconstructionAlgorithm2D.h
index 6ee7234..e105a7c 100644
--- a/include/astra/ReconstructionAlgorithm2D.h
+++ b/include/astra/ReconstructionAlgorithm2D.h
@@ -116,7 +116,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information.
*
diff --git a/include/astra/ReconstructionAlgorithm3D.h b/include/astra/ReconstructionAlgorithm3D.h
index 010443f..0bbae2d 100644
--- a/include/astra/ReconstructionAlgorithm3D.h
+++ b/include/astra/ReconstructionAlgorithm3D.h
@@ -117,7 +117,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information.
*
diff --git a/include/astra/SartAlgorithm.h b/include/astra/SartAlgorithm.h
index 5f39c3a..f1bd47a 100644
--- a/include/astra/SartAlgorithm.h
+++ b/include/astra/SartAlgorithm.h
@@ -184,7 +184,7 @@ public:
*
* @return map with all boost::any object
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/SirtAlgorithm.h b/include/astra/SirtAlgorithm.h
index 70bc3cf..a4b57f8 100644
--- a/include/astra/SirtAlgorithm.h
+++ b/include/astra/SirtAlgorithm.h
@@ -191,7 +191,7 @@ public:
*
* @return Map with all available identifier strings and their values.
*/
- virtual map<string,boost::any> getInformation();
+ virtual std::map<std::string,boost::any> getInformation();
/** Get a single piece of information represented as a boost::any
*
diff --git a/include/astra/TypeList.h b/include/astra/TypeList.h
index 7460969..e7d7137 100644
--- a/include/astra/TypeList.h
+++ b/include/astra/TypeList.h
@@ -219,10 +219,10 @@ namespace typelist {
template <typename Base>
struct functor_find {
functor_find() { res = NULL; }
- bool operator() (string name) {
+ bool operator() (std::string name) {
return strcmp(tofind.c_str(), name.c_str()) == 0;
}
- string tofind;
+ std::string tofind;
Base* res;
};
diff --git a/include/astra/XMLDocument.h b/include/astra/XMLDocument.h
index e25d398..fc8b29f 100644
--- a/include/astra/XMLDocument.h
+++ b/include/astra/XMLDocument.h
@@ -41,8 +41,6 @@ namespace rapidxml {
#include "Globals.h"
#include "XMLNode.h"
-using namespace std;
-
namespace astra {
/** This class encapsulates an XML Document of the Xerces DOM Parser.
@@ -64,14 +62,14 @@ public:
* @param sFilename Location of the XML file.
* @return XML Document containing the DOM tree
*/
- static XMLDocument* readFromFile(string sFilename);
+ static XMLDocument* readFromFile(std::string sFilename);
/** Construct an empty XML DOM tree with a specific root tag.
*
* @param sRootName Element name of the root tag.
* @return XML Document with an empty root node
*/
- static XMLDocument* createDocument(string sRootName);
+ static XMLDocument* createDocument(std::string sRootName);
/** Get the rootnode of the XML document
*
@@ -83,7 +81,7 @@ public:
*
* @param sFilename Location of the XML file.
*/
- void saveToFile(string sFilename);
+ void saveToFile(std::string sFilename);
/** convert and XML DOM tree to a string
*/
diff --git a/include/astra/XMLNode.h b/include/astra/XMLNode.h
index 5e1908a..de5a052 100644
--- a/include/astra/XMLNode.h
+++ b/include/astra/XMLNode.h
@@ -43,8 +43,6 @@ namespace rapidxml {
#include "Globals.h"
#include "Utilities.h"
-using namespace std;
-
namespace astra {
/**
@@ -73,14 +71,14 @@ public:
* @param _sName tagname of the requested child node
* @return first child node with the correct tagname, null pointer if it doesn't exist
*/
- XMLNode getSingleNode(string _sName) const;
+ XMLNode getSingleNode(std::string _sName) const;
/** Get all child XML nodes that have the tagname name
*
* @param _sName tagname of the requested child nodes
* @return list with all child nodes with the correct tagname
*/
- std::list<XMLNode> getNodes(string _sName) const;
+ std::list<XMLNode> getNodes(std::string _sName) const;
/** Get all child XML nodes
*
@@ -98,7 +96,7 @@ public:
*
* @return node content
*/
- string getContent() const;
+ std::string getContent() const;
/** Get the content of the XML node as an integer
*
@@ -122,15 +120,15 @@ public:
*
* @return node content
*/
- vector<string> getContentArray() const;
+ std::vector<std::string> getContentArray() const;
/** Get the content of the XML node as a stl container of float32 data.
* NB: A 2D matrix is returned as a linear list
*
* @return node content
*/
- vector<float32> getContentNumericalArray() const;
- vector<double> getContentNumericalArrayDouble() const;
+ std::vector<float32> getContentNumericalArray() const;
+ std::vector<double> getContentNumericalArrayDouble() const;
@@ -139,7 +137,7 @@ public:
* @param _sName of the attribute.
* @return attribute value, empty string if it doesn't exist.
*/
- bool hasAttribute(string _sName) const;
+ bool hasAttribute(std::string _sName) const;
/** Get the value of an attribute.
*
@@ -147,7 +145,7 @@ public:
* @param _sDefaultValue value to return if the attribute isn't found
* @return attribute value, _sDefaultValue if it doesn't exist.
*/
- string getAttribute(string _sName, string _sDefaultValue = "") const;
+ std::string getAttribute(std::string _sName, std::string _sDefaultValue = "") const;
/** Get the value of a numerical attribute.
*
@@ -155,9 +153,9 @@ public:
* @param _fDefaultValue value to return if the attribute isn't found
* @return attribute value, _fDefaultValue if it doesn't exist.
*/
- float32 getAttributeNumerical(string _sName, float32 _fDefaultValue = 0) const;
- double getAttributeNumericalDouble(string _sName, double _fDefaultValue = 0) const;
- int getAttributeInt(string _sName, int _fDefaultValue = 0) const;
+ float32 getAttributeNumerical(std::string _sName, float32 _fDefaultValue = 0) const;
+ double getAttributeNumericalDouble(std::string _sName, double _fDefaultValue = 0) const;
+ int getAttributeInt(std::string _sName, int _fDefaultValue = 0) const;
/** Get the value of a boolean attribute.
*
@@ -165,7 +163,7 @@ public:
* @param _bDefaultValue value to return if the attribute isn't found
* @return attribute value, _bDefaultValue if it doesn't exist.
*/
- bool getAttributeBool(string _sName, bool _bDefaultValue = false) const;
+ bool getAttributeBool(std::string _sName, bool _bDefaultValue = false) const;
@@ -175,7 +173,7 @@ public:
* @param _sKey option key
* @return true if option does exist
*/
- bool hasOption(string _sKey) const;
+ bool hasOption(std::string _sKey) const;
/** Get the value of an option within this XML Node
*
@@ -183,7 +181,7 @@ public:
* @param _sDefaultValue value to return if key isn't found
* @return option value, _sDefaultValue if the option doesn't exist
*/
- string getOption(string _sKey, string _sDefaultValue = "") const;
+ std::string getOption(std::string _sKey, std::string _sDefaultValue = "") const;
/** Get the value of an option within this XML Node
*
@@ -191,8 +189,8 @@ public:
* @param _fDefaultValue value to return if key isn't found
* @return option value, _fDefaultValue if the option doesn't exist
*/
- float32 getOptionNumerical(string _sKey, float32 _fDefaultValue = 0) const;
- int getOptionInt(string _sKey, int _fDefaultValue = 0) const;
+ float32 getOptionNumerical(std::string _sKey, float32 _fDefaultValue = 0) const;
+ int getOptionInt(std::string _sKey, int _fDefaultValue = 0) const;
/** Get the value of an option within this XML Node
*
@@ -200,14 +198,14 @@ public:
* @param _bDefaultValue value to return if key isn't found
* @return option value, _bDefaultValue if the option doesn't exist
*/
- bool getOptionBool(string _sKey, bool _bDefaultValue = false) const;
+ bool getOptionBool(std::string _sKey, bool _bDefaultValue = false) const;
/** Get the value of an option within this XML Node
*
* @param _sKey option key
* @return numerical array
*/
- vector<float32> getOptionNumericalArray(string _sKey) const;
+ std::vector<float32> getOptionNumericalArray(std::string _sKey) const;
@@ -218,7 +216,7 @@ public:
* @param _sNodeName the name of the new childnode
* @return new child node
*/
- XMLNode addChildNode(string _sNodeName);
+ XMLNode addChildNode(std::string _sNodeName);
/** Create a new XML node as a child to this one, also add some content:
* &lt;...&gt;&lt;_sNodeName&gt;_sValue&lt;/_sNodeName>&lt;/...&gt;
@@ -227,7 +225,7 @@ public:
* @param _sValue some node content
* @return new child node
*/
- XMLNode addChildNode(string _sNodeName, string _sValue);
+ XMLNode addChildNode(std::string _sNodeName, std::string _sValue);
/** Create a new XML node as a child to this one, also add some numerical content:
* &lt;...&gt;&lt;_sNodeName&gt;_sValue&lt;/_sNodeName>&lt;/...&gt;
@@ -236,7 +234,7 @@ public:
* @param _fValue some node content
* @return new child node
*/
- XMLNode addChildNode(string _sNodeName, float32 _fValue);
+ XMLNode addChildNode(std::string _sNodeName, float32 _fValue);
/** Create a new XML node as a child to this one, also add a list of numerical content:
* &lt;...&gt;&lt;_sNodeName&gt;_sValue&lt;/_sNodeName>&lt;/...&gt;
@@ -246,13 +244,13 @@ public:
* @param _iSize number of elements in _pfList
* @return new child node
*/
- XMLNode addChildNode(string _sNodeName, float32* _pfList, int _iSize);
+ XMLNode addChildNode(std::string _sNodeName, float32* _pfList, int _iSize);
/** Add some text to the node: &lt;...&gt;_sText&lt;/...&gt;
*
* @param _sText text to insert
*/
- void setContent(string _sText);
+ void setContent(std::string _sText);
/** Add a number to the node: &lt;...&gt;_sText&lt;/...&gt;
*
@@ -297,28 +295,28 @@ public:
* @param _sName name of the attribute
* @param _sValue value of the attribute
*/
- void addAttribute(string _sName, string _sValue);
+ void addAttribute(std::string _sName, std::string _sValue);
/** Add an attribute with numerical data to this node: &lt;... _sName="_fValue"&gt;
*
* @param _sName name of the attribute
* @param _sValue value of the attribute
*/
- void addAttribute(string _sName, float32 _fValue);
+ void addAttribute(std::string _sName, float32 _fValue);
/** Add an option node as a child: &lt;Option key="&lt;_sKey&gt;" value="&lt;_sValue&gt;"/>
*
* @param _sKey option key
* @param _sValue option value
*/
- void addOption(string _sKey, string _sValue);
+ void addOption(std::string _sKey, std::string _sValue);
/** Add an option node as a child: &lt;Option key="&lt;_sKey&gt;" value="&lt;_sValue&gt;"/>
*
* @param _sKey option key
* @param _sValue option value
*/
- void addOption(string _sKey, float32 _fValue);
+ void addOption(std::string _sKey, float32 _fValue);
/** Print to String
diff --git a/matlab/mex/mexHelpFunctions.h b/matlab/mex/mexHelpFunctions.h
index 9b564c5..37ca894 100644
--- a/matlab/mex/mexHelpFunctions.h
+++ b/matlab/mex/mexHelpFunctions.h
@@ -46,7 +46,7 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
#include "astra/XMLNode.h"
// utility functions
-string mexToString(const mxArray* pInput);
+std::string mexToString(const mxArray* pInput);
bool mexIsScalar(const mxArray* pInput);
void get3DMatrixDims(const mxArray* x, mwSize *dims);
@@ -55,7 +55,7 @@ mxArray* vectorToMxArray(std::vector<astra::float32> mInput);
mxArray* anyToMxArray(boost::any _any);
// turn a MATLAB struct into a Config object
-astra::Config* structToConfig(string rootname, const mxArray* pStruct);
+astra::Config* structToConfig(std::string rootname, const mxArray* pStruct);
bool structToXMLNode(astra::XMLNode node, const mxArray* pStruct);
bool optionsToXMLNode(astra::XMLNode node, const mxArray* pOptionStruct);
std::map<std::string, mxArray*> parseStruct(const mxArray* pInput);