Commit f7169667 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added static variables for cdoStream ids, cdoStream base constructor handles id assignment

parent 5a4826a4
......@@ -25,8 +25,11 @@
#include "cdoStream.h"
#include "cdo_options.h"
static int nextCdoStreamID = 1;
static int createdCdoStreams = 0;
CdoStream::~CdoStream() {}
CdoStream::CdoStream(int p_id) : m_cdoStreamID(p_id)
CdoStream::CdoStream() : m_cdoStreamID(nextCdoStreamID++)
{
isopen = false;
m_vlistID = -1;
......
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