Commit 860d6b93 authored by claes's avatar claes

Message modifications

parent 19edb162
/* /*
* Proview $Id: wb_erep.cpp,v 1.46 2006-05-22 09:39:37 claes Exp $ * Proview $Id: wb_erep.cpp,v 1.47 2006-05-24 06:59:10 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB. * Copyright (C) 2005 SSAB Oxelösund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -491,8 +491,11 @@ void wb_erep::loadCommonMeta( pwr_tStatus *status) ...@@ -491,8 +491,11 @@ void wb_erep::loadCommonMeta( pwr_tStatus *status)
vrep->load(); vrep->load();
addDbs( &sts, vrep); addDbs( &sts, vrep);
char buff[256]; char buff[256];
sprintf(buff, "Global class volume \"%s\" loaded from \"%s\"", vrep->dbsenv()->vp->name, vname); if ( vrep->cid() == pwr_eClass_ClassVolume)
MsgWindow::message( 'I', buff); sprintf(buff, "Global class volume \"%s\" loaded from \"%s\"", vrep->dbsenv()->vp->name, vname);
else
sprintf(buff, "Volume \"%s\" loaded from \"%s\"", vrep->dbsenv()->vp->name, vname);
MsgWindow::message( 'O', buff);
} }
catch ( wb_error& e) { catch ( wb_error& e) {
if ( m_options & ldh_mWbOption_IgnoreDLoadError) if ( m_options & ldh_mWbOption_IgnoreDLoadError)
...@@ -567,7 +570,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db) ...@@ -567,7 +570,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
try { try {
wb_vrepext *vrepext = new wb_vrepext( this, vid, vol_array[0], vol_array[4]); wb_vrepext *vrepext = new wb_vrepext( this, vid, vol_array[0], vol_array[4]);
addExtern( &sts, vrepext); addExtern( &sts, vrepext);
MsgWindow::message( 'I', "Volume loaded", vname); MsgWindow::message( 'O', "Volume loaded", vname);
vol_cnt++; vol_cnt++;
} }
catch ( wb_error& e) { catch ( wb_error& e) {
...@@ -594,7 +597,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db) ...@@ -594,7 +597,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
vrep = new wb_vrepdbs( this, vname); vrep = new wb_vrepdbs( this, vname);
vrep->load(); vrep->load();
addDbs( &sts, vrep); addDbs( &sts, vrep);
MsgWindow::message( 'I', "Volume loaded from snapshot file", vname); MsgWindow::message( 'O', "Volume loaded from snapshot file", vname);
vol_cnt++; vol_cnt++;
} }
catch ( wb_error& e) { catch ( wb_error& e) {
...@@ -619,7 +622,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db) ...@@ -619,7 +622,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
vrep->load(); vrep->load();
// vrep->name( vol_array[0]); // vrep->name( vol_array[0]);
addDbs( &sts, vrep); addDbs( &sts, vrep);
MsgWindow::message( 'I', "Volume loaded from snapshot file", vname); MsgWindow::message( 'O', "Volume loaded from snapshot file", vname);
} }
catch ( wb_error& e) { catch ( wb_error& e) {
if ( m_options & ldh_mWbOption_IgnoreDLoadError) if ( m_options & ldh_mWbOption_IgnoreDLoadError)
...@@ -655,7 +658,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db) ...@@ -655,7 +658,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
vrep->load(); vrep->load();
// vrep->name( vol_array[0]); // vrep->name( vol_array[0]);
addDbs( &sts, vrep); addDbs( &sts, vrep);
MsgWindow::message( 'I', "Volume loaded from snapshot file", vname); MsgWindow::message( 'O', "Volume loaded from snapshot file", vname);
} }
catch ( wb_error& e) { catch ( wb_error& e) {
if ( m_options & ldh_mWbOption_IgnoreDLoadError) if ( m_options & ldh_mWbOption_IgnoreDLoadError)
......
/* /*
* Proview $Id: wb_merep.cpp,v 1.33 2006-05-21 22:30:50 lw Exp $ * Proview $Id: wb_merep.cpp,v 1.34 2006-05-24 06:59:10 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB. * Copyright (C) 2005 SSAB Oxelösund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -95,7 +95,7 @@ wb_merep::wb_merep(const char *dirName, wb_erep *erep, wb_vrep *vrep) : ...@@ -95,7 +95,7 @@ wb_merep::wb_merep(const char *dirName, wb_erep *erep, wb_vrep *vrep) :
addDbs(&sts, (wb_mvrep *)vrep); addDbs(&sts, (wb_mvrep *)vrep);
char buff[256]; char buff[256];
sprintf(buff, "Local class volume \"%s\" loaded from \"%s\", in data base %s", vp->name, fileName, dirName); sprintf(buff, "Local class volume \"%s\" loaded from \"%s\", in data base %s", vp->name, fileName, dirName);
MsgWindow::message( 'I', buff); MsgWindow::message( 'O', buff);
} }
catch (wb_error& e) { catch (wb_error& e) {
MsgWindow::message( 'E', "Unable to open local class volume", fileName, e.what().c_str()); MsgWindow::message( 'E', "Unable to open local class volume", fileName, e.what().c_str());
......
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