Menu

[r7]: / container.h  Maximize  Restore  History

Download this file

62 lines (47 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
////////////////////////////////////////////////////////////////////
////// Классы для работы с Container.Contents ///////////////////
////////////////////////////////////////////////////////////////////
#ifndef CONTAINER_H
#define CONTAINER_H
#include "strings.h"
#include "mms.h"
typedef struct
{
wxString Type;
wxString Descr;
} CContainerInfo;
typedef enum{CT_Normal, CT_UserInterfaces} CContainerType;
class CContainerRecord : public CMMSObject
{
public:
wxString Type;
wxString StreamName;
wxString ObjectName;
wxString Param4;
private:
static CContainerRecord* DefVal;
static CObjectProperty Props[];
static CPropertySet PropSet;
public:
CContainerRecord() { ObjectName = wxEmptyString; };
CPropertySet* GetPropSet() {return &PropSet;};
};
class CContainer : public CMMSAttributes
{
public:
wxString Content;
public:
CContainer();
virtual wxString BeautyName() {return _U("Container.Contents");}
virtual CMMSObject* CreateChild(const wxString& Name, int MMS_Index = -1)
{return new CContainerRecord;};
wxString& Create(CStorage& Storage, bool Recursive, CContainerType Type = CT_Normal);
wxString& CreateInTypedText(CStorage& TypedTextStorage);
private:
void Add(wxString Type, wxString Name, wxString Descr);
void AddDir(wxString DirName);
void AddDir(const wchar_t* wDirName);
void AddFile(wxString FileName, CContainerType Type = CT_Normal);
void AddFile(const wchar_t* wFileName, CContainerType Type = CT_Normal);
};
#endif