Ignore:
Timestamp:
Jun 20, 2006, 6:04:51 PM (19 years ago)
Author:
ansari
Message:

Ajout flag int lev ds les adaptateurs NObjMgrAdapter::Print(ostream& os, int lev=0) et NamedObjMgr::Print() + modif commande print - Reza 20 Juin 2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nomtmatvecadapter.cc

    r2933 r2975  
    9090/* --Methode-- */
    9191template <class T>
    92 void NOMAdapter_TMatrix<T>::Print(ostream& os)
    93 {
    94 TVector<T>* v = dynamic_cast<TVector<T> *>(mMtx);
    95 if (v != NULL)  os << (*v);
    96 else os << (*mMtx);
     92void NOMAdapter_TMatrix<T>::Print(ostream& os, int lev)
     93{
     94if (lev < 3) mMtx->Show(os, false);
     95else  mMtx->Show(os, true);
     96if (lev > 0) mMtx->Print(os, 10*lev);
    9797}
    9898
Note: See TracChangeset for help on using the changeset viewer.