Lhaz
lhaztree.h
[詳解]
1 #ifndef _LHAZTREE_H
2 #define _LHAZTREE_H
3 
4 #include "altstr.hpp"
5 #include <stdio.h>
6 #include <vector>
7 
8 using namespace std;
9 
10 class MYFILE;
11 class LHAZLIST;
12 
13 class LHAZTREE {
14 public:
15  enum TYPE { TREE_NON, TREE_DIR, TREE_FILE };
16  LHAZTREE(int level, int index, const WSTR& name);
17  LHAZTREE(int level, TYPE type, int index, const WSTR& name);
18  LHAZTREE(void);
19  void Add(int index, const WSTR& name);
20  void Print(MYFILE& fo, bool hasdir, bool csv, LHAZLIST* lhazlist);
21 
22 private:
23  static vector<bool> Line;
24  int Level;
26  int Index;
27  WSTR Name;
28  vector<LHAZTREE> Child;
29  bool HasDir;
30  //
31  WSTR GetContent(bool csv, int index, LHAZLIST* lhazlist);
32 
33 };
34 
35 #endif
Definition: lhazlist.h:19
static vector< bool > Line
Definition: lhaztree.h:23
TYPE Type
Definition: lhaztree.h:25
bool HasDir
Definition: lhaztree.h:29
vector< LHAZTREE > Child
Definition: lhaztree.h:28
int Level
Definition: lhaztree.h:24
Definition: lhaztree.h:13
int Index
Definition: lhaztree.h:26
WSTR Name
Definition: lhaztree.h:27
TYPE
Definition: lhaztree.h:15