WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
31cf5fbb
Commit
31cf5fbb
authored
Nov 27, 2012
by
Mathias Bavay
Browse files
Fixing some Visual C++ warnings
parent
2fd0bba2
Changes
5
Hide whitespace changes
Inline
Side-by-side
meteoio/BufferedIOHandler.cc
View file @
31cf5fbb
...
...
@@ -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
...
...
meteoio/BufferedIOHandler.h
View file @
31cf5fbb
...
...
@@ -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
...
...
meteoio/IOHandler.cmake.cc
View file @
31cf5fbb
...
...
@@ -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
=
""
;
...
...
meteoio/IOHandler.h
View file @
31cf5fbb
...
...
@@ -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
);
...
...
meteoio/plugins/SNIO.cc
View file @
31cf5fbb
...
...
@@ -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
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment