Commit e4214963 authored by Samuel Debionne's avatar Samuel Debionne

Use str::string instead of const char* makes things easier for python 3

parent 10e7bda6
......@@ -661,7 +661,7 @@ namespace lima
DEB_CLASS_NAMESPC(DebModCamera,"Camera","Pco");
public:
Camera(const char *camPar);
Camera(const std::string& camPar);
~Camera();
enum Status {Fault,Ready,Exposure,Readout,Latency,Config};
......
......@@ -8,7 +8,7 @@ namespace Pco
%End
public:
Camera(const char*);
Camera(const std::string&);
~Camera();
......
......@@ -803,7 +803,7 @@ Camera::_AcqThread::~_AcqThread()
//=========================================================================================================
//=========================================================================================================
Camera::Camera(const char *params)
Camera::Camera(const std::string& camPar)
{
//DEF_FNID;
DEB_CONSTRUCTOR();
......@@ -850,7 +850,7 @@ Camera::Camera(const char *params)
// properties: params
paramsInit(params);
paramsInit(camPar.c_str());
char *value;
const char *key;
......
......@@ -24,7 +24,7 @@
//=========================================================================================================
//=========================================================================================================
Camera::Camera(const char *params) :
Camera::Camera(const std::string& camPar) :
m_cam_connected(false),
m_acq_frame_nb(1),
m_sync(NULL),
......@@ -58,7 +58,7 @@ Camera::Camera(const char *params) :
// properties: params
paramsInit(params);
paramsInit(camPar.c_str());
char *value;
const char *key;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment