Lhaz
destdirs.h
[詳解]
1 /*************************************************************************/
6 #pragma once
7 
8 #include "altstr.hpp"
9 #include <tchar.h>
10 #include <vector>
11 
12 /*************************************************************************/
15 class DESTDIRS {
16 
17 public:
18  DESTDIRS();
19  DESTDIRS(const DESTDIRS*); // 非推奨
20  DESTDIRS(const DESTDIRS& org);
21  //
22  std::size_t Size() const { return DestDirs.size(); }
23  TCHAR* Get(unsigned int idx) { return DestDirs[idx].Pointer(); }
24  TCHAR* GetName(unsigned int idx) { return DestNames[idx].Pointer(); }
25  void SetName(unsigned int idx, const WSTR& name);
26  std::vector<WSTR>::iterator Begin() { return DestDirs.begin(); }
27  std::vector<WSTR>::iterator End() { return DestDirs.end(); }
28  void Save();
29  void Add(const WSTR& dir, const WSTR& alias_name);
30  void Del(unsigned int idx);
31  void Up(unsigned int idx);
32  void Down(unsigned int idx);
33  bool IsSame(const WSTR& dir) const;
34 
35 private:
36  std::vector<WSTR> DestDirs;
37  std::vector<WSTR> DestNames;
38 
39 };
void Save()
Definition: destdirs.cpp:51
std::vector< WSTR >::iterator Begin()
Definition: destdirs.h:26
std::vector< WSTR >::iterator End()
Definition: destdirs.h:27
void Add(const WSTR &dir, const WSTR &alias_name)
Definition: destdirs.cpp:62
void Up(unsigned int idx)
Definition: destdirs.cpp:92
std::vector< WSTR > DestNames
Definition: destdirs.h:37
void SetName(unsigned int idx, const WSTR &name)
Definition: destdirs.cpp:83
DESTDIRS()
Definition: destdirs.cpp:16
void Down(unsigned int idx)
Definition: destdirs.cpp:106
std::size_t Size() const
Definition: destdirs.h:22
解凍先ディレクトリ
Definition: destdirs.h:15
bool IsSame(const WSTR &dir) const
Definition: destdirs.cpp:120
std::vector< WSTR > DestDirs
Definition: destdirs.h:36
void Del(unsigned int idx)
Definition: destdirs.cpp:72
TCHAR * GetName(unsigned int idx)
Definition: destdirs.h:24
TCHAR * Get(unsigned int idx)
Definition: destdirs.h:23