Patch level : 10.0
Files correlati : mglib Ricompilazione Demo : [ ] Commento : Aggiunto un costruttore alla classe TMov_mag; adesso è possibile instanziare un TMov_mag passadogli direttamente il suo numero di movimento git-svn-id: svn://10.65.10.50/trunk@18841 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b60c606f9f
commit
359c96d1d7
@ -593,6 +593,7 @@ public:
|
|||||||
|
|
||||||
// costruttori e distruttori
|
// costruttori e distruttori
|
||||||
TMov_mag();
|
TMov_mag();
|
||||||
|
TMov_mag(long numreg);
|
||||||
virtual ~TMov_mag();
|
virtual ~TMov_mag();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -215,6 +215,15 @@ TMov_mag::TMov_mag() :
|
|||||||
add_file(LF_RMOVMAG,"NRIG");
|
add_file(LF_RMOVMAG,"NRIG");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TMov_mag::TMov_mag(long numreg) :
|
||||||
|
TMultiple_rectype(LF_MOVMAG)
|
||||||
|
{
|
||||||
|
add_file(LF_RMOVMAG,"NRIG");
|
||||||
|
TLocalisamfile movmag(LF_MOVMAG);
|
||||||
|
put(MOVMAG_NUMREG, numreg);
|
||||||
|
read(movmag);
|
||||||
|
}
|
||||||
|
|
||||||
TMov_mag::~TMov_mag()
|
TMov_mag::~TMov_mag()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user