1 #ifndef EMMH_HysteresisFile_H 2 #define EMMH_HysteresisFile_H 65 inline static SP::EMMH_HysteresisFile
New() {
273 tUIndex index=prefix.rfind(
".");
274 if (index!=tString::npos) {
275 ext=prefix.substr(index);
276 prefix=prefix.substr(0,index);
DEFINE_SPTR(EMMH_HysteresisFile)
EMMH_HysteresisFile(void)
create
Definition: EMMH_HysteresisFile.h:51
This class is a I/O class for E-MicroM core package.
Definition: EMM_IO.h:16
virtual ~EMMH_HysteresisFile(void)
destroy
Definition: EMMH_HysteresisFile.h:58
virtual tString toString() const
turn the hsteresis file into string
Definition: EMMH_HysteresisFile.h:285
#define tUInteger
Definition: types.h:91
tBoolean isEmpty() const
return true if the file is empty
Definition: EMMH_HysteresisFile.h:266
tBoolean load(EMM_RealArray &H, EMM_RealArray &M, tUSInt &D, tUInteger &i, tUInteger &c, tUSInt &s) const
load the file and fill the H values and the M values
Definition: EMMH_HysteresisFile.cpp:153
Definition: EMMH_HysteresisFile.h:36
#define tUSInt
Definition: types.h:28
static tBoolean exists(const tString &filename)
test if the file or path exists
Definition: CORE_IO.cpp:409
#define tBoolean
Definition: types.h:139
tBoolean append(const EMM_RealArray &M, const tUSInt &D, const EMM_RealArray &data, const tUSInt &dataDim, const tUSInt &n) const
append the data to the hysteresis file & relaxation return code
Definition: EMMH_HysteresisFile.cpp:120
static SP::EMMH_HysteresisFile New()
create a run class
Definition: EMMH_HysteresisFile.h:65
const tString & getPath() const
get the path
Definition: EMM_IO.h:88
static const tUIndex MAX_LINES
Definition: EMMH_HysteresisFile.h:45
#define tUIndex
Definition: types.h:126
This class describes a real array.
Definition: EMM_RealArray.h:16
#define tString
Definition: types.h:135
const tString & getPrefix() const
get the prefix
Definition: EMM_IO.h:95
tBoolean save(const EMM_RealArray &Hext, const vector< tString > &dataNames, const tUInteger &nMaxHCycles, const tUSInt &flowSize) const
save all the external field for all hysteresis files:
Definition: EMMH_HysteresisFile.cpp:6
SP_OBJECT(EMMH_HysteresisFile)
This class describes a general array.
Definition: EMM_Array.h:18
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141