1 #ifndef MM_ClassFactory_H
2 #define MM_ClassFactory_H
66 inline static SP::MM_ClassFactory
New() {
84 SP::CORE_ClassFactory cfactory,
86 return saveIntoFile(obj,UI_Class::INTERFACE,cfactory,
"x",fileName);
94 const tFlag& interfaceType,
95 SP::CORE_ClassFactory cfactory,
105 return saveIntoFile(obj,UI_Class::INTERFACE,fact,
"x",fileName);
111 SP::CORE_ClassFactory cfactory,
115 cfactory,varName,fileName);
121 const tFlag& interfaceType,
126 fact,varName,fileName);
134 SP::CORE_ClassFactory cfactory,
140 const tFlag& interfaceType,
141 SP::CORE_ClassFactory cfactory,
157 SP::MM_Class readClass(
CORE_File& f)
const;
160 static void read(
const tString& v,
const tString& sep,vector<tString>& vect);
163 static void read(
const tString& v,
const tString& sep,vector<double>& vect);
168 inline void setFileType(
const tString& ext) {
169 if (ext.compare(
"R")==0) mFileType=R;
175 inline tString getFileType()
const {
181 inline tString getClassHeader()
const {
188 inline tString getClassFooter()
const {
193 inline tString getClassFieldSeparator()
const {
198 inline tString getListHeader()
const {
203 inline tString getListFooter()
const {
208 inline tString getListSeparator()
const {
214 inline tString getVectorHeader()
const {
221 inline tString getVectorFooter()
const {
226 inline tString getVectorSeparator()
const {
231 inline tString getMatrixHeader()
const {
236 inline tString getMatrixFooter()
const {
241 inline tString getMatrixSeparator()
const {
This class is a primary field.
Definition: MM_Attribute.h:15
virtual tBoolean saveIntoFile(const CORE_Object &obj, SP::CORE_ClassFactory cfactory, const tString &fileName)
save into file
Definition: MM_ClassFactory.h:83
DEFINE_SPTR(MM_ClassFactory)
virtual tBoolean saveIntoFile(const CORE_Object &obj, const tString &fileName)
save the obj into an xml file
Definition: MM_ClassFactory.h:102
this class describes the output by default write on standart output
Definition: CORE_File.h:20
this class describes a class factory to generate classes for User Interface Software ...
Definition: MM_ClassFactory.h:19
#define tBoolean
Definition: types.h:48
this class describes a class factory to generate classes for User Interface Software ...
Definition: UI_ClassFactory.h:21
#define null
Definition: types.h:13
This class is a description of class.
Definition: MM_Class.h:17
virtual SP::CORE_Object loadFromFile(const tFlag &interfaceType, SP::CORE_ClassFactory cfactory, const tString &fileName)
load from R file
Definition: MM_ClassFactory.cpp:157
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:49
virtual ~MM_ClassFactory(void)
destroy a MM_ClassFactory
Definition: MM_ClassFactory.cpp:20
static SP::CORE_ClassFactory New()
Definition: CORE_ClassFactory.h:62
static SP::MM_ClassFactory New()
create an instance of class
Definition: MM_ClassFactory.h:66
tBoolean saveIntoFile(SPC::CORE_Object obj, SP::CORE_ClassFactory cfactory, const tString &varName, const tString &fileName)
save the obj into an xml file
Definition: MM_ClassFactory.h:110
static const tString ID
Definition: MM_ClassFactory.h:27
tBoolean saveIntoFile(SPC::CORE_Object obj, const tFlag &interfaceType, const tString &varName, const tString &fileName)
save the obj into an xml file
Definition: MM_ClassFactory.h:120
MM_ClassFactory()
build a MM_ClassFactory
Definition: MM_ClassFactory.cpp:13
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14