Commit e313e120 authored by lw's avatar lw

*** empty log message ***

parent fb6deb92
#include "wb_vrepdbs.h" #include "wb_vrepdbs.h"
#include "wb_orepdbs.h" #include "wb_orepdbs.h"
#include "wb_merep.h"
void wb_vrepdbs::unref() void wb_vrepdbs::unref()
{ {
...@@ -15,7 +16,10 @@ wb_vrep *wb_vrepdbs::ref() ...@@ -15,7 +16,10 @@ wb_vrep *wb_vrepdbs::ref()
wb_vrepdbs::wb_vrepdbs(wb_erep *erep, const char *fileName) : m_erep(erep) wb_vrepdbs::wb_vrepdbs(wb_erep *erep, const char *fileName) : m_erep(erep)
{ {
pwr_tStatus sts;
m_merep = new wb_merep(m_erep, (wb_mvrep *)this);
m_merep->addDbs(&sts, (wb_mvrep *)this); // only if i am a class volume
strcpy(m_fileName, fileName); strcpy(m_fileName, fileName);
m_isDbsenvLoaded = false; m_isDbsenvLoaded = false;
} }
...@@ -278,7 +282,7 @@ wb_vrepdbs::isLocal(wb_orep *) const ...@@ -278,7 +282,7 @@ wb_vrepdbs::isLocal(wb_orep *) const
pwr_tCid pwr_tCid
wb_vrepdbs::cid() const wb_vrepdbs::cid() const
{ {
return 0; return m_dbsenv.vp->cid;;
} }
pwr_tVid pwr_tVid
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#include "wb_vrep.h" #include "wb_vrep.h"
#include "wb_cdef.h" #include "wb_cdef.h"
class wb_merep;
class wb_vrepdbs : public wb_vrep class wb_vrepdbs : public wb_vrep
{ {
public: public:
...@@ -13,6 +15,7 @@ public: ...@@ -13,6 +15,7 @@ public:
//wb_session m_wsession; //wb_session m_wsession;
wb_erep *m_erep; wb_erep *m_erep;
wb_merep *m_merep;
unsigned int m_nSession; unsigned int m_nSession;
unsigned int m_nRef; unsigned int m_nRef;
...@@ -22,6 +25,7 @@ public: ...@@ -22,6 +25,7 @@ public:
dbs_sEnv m_dbsenv; dbs_sEnv m_dbsenv;
wb_vrepdbs(wb_erep *erep, const char *fileName); wb_vrepdbs(wb_erep *erep, const char *fileName);
dbs_sEnv *dbsenv(); dbs_sEnv *dbsenv();
bool load(); bool load();
void objectName(wb_orep *o, char *str) const; void objectName(wb_orep *o, char *str) const;
......
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