WSL/SLF GitLab Repository

Commit 31cf5fbb authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Fixing some Visual C++ warnings

parent 2fd0bba2
......@@ -36,6 +36,22 @@ BufferedIOHandler::~BufferedIOHandler() throw()
#endif
{}
BufferedIOHandler& BufferedIOHandler::operator=(const BufferedIOHandler& source) {
if(this != &source) {
iohandler = source.iohandler;
vec_buffer_meteo = source.vec_buffer_meteo;
mapBufferedGrids = source.mapBufferedGrids;
IndexBufferedGrids = source.IndexBufferedGrids;
buffer_start = source.buffer_start;
buffer_end = source.buffer_end;
chunk_size = source.chunk_size;
buff_before = source.buff_before;
chunks = source.chunks;
max_grids = source.max_grids;
}
return *this;
}
void BufferedIOHandler::bufferGrid(const Grid2DObject& in_grid2Dobj, const std::string& in_filename)
{
if(IndexBufferedGrids.size() >= max_grids) { //we need to remove the oldest grid
......
......@@ -76,6 +76,8 @@ class BufferedIOHandler : public IOInterface {
virtual ~BufferedIOHandler() throw();
#endif
BufferedIOHandler& operator=(const BufferedIOHandler&); ///<Assignement operator
///Keywords for slope computation algorithm
typedef enum BUFFER_POLICY {
KEEP_NODATA, ///< when a data point is nodata in the buffer, return the buffered value
......
......@@ -208,6 +208,16 @@ IOHandler::~IOHandler() throw(){
}
}
IOHandler& IOHandler::operator=(const IOHandler& source) {
if(this != &source) {
mapPlugins = source.mapPlugins;
copy_parameter = source.copy_parameter;
copy_name = source.copy_name;
enable_copying = source.enable_copying;
}
return *this;
}
IOInterface* IOHandler::getPlugin(const std::string& cfgkey, const std::string& cfgsection)
{
std::string op_src="";
......
......@@ -49,6 +49,8 @@ class IOHandler : public IOInterface {
virtual ~IOHandler() throw();
#endif
IOHandler& operator=(const IOHandler&); ///<Assignement operator
//methods defined in the IOInterface class
virtual void read2DGrid(Grid2DObject& out_grid, const std::string& parameter="");
virtual void read2DGrid(Grid2DObject& grid_out, const MeteoGrids::Parameters& parameter, const Date& date);
......
......@@ -300,7 +300,7 @@ void SNIO::readMetaData()
}
}
vecAllStations.push_back(sd);
cerr << "\t[i] Read meta data for station ID \"" << station_id << "\"\n";
//cerr << "[i] Read meta data for station ID \"" << station_id << "\"\n";
}
current_stationnr++;
......
Supports Markdown
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