Lhaz
defpasswords.h
[詳解]
1 /*************************************************************************/
6 #pragma once
7 
8 #include "altstr.hpp"
9 #include <tchar.h>
10 #include <vector>
11 
12 using std::vector;
13 
14 /*************************************************************************/
17 class DEFPASSWORDS {
18 
19 public:
20  DEFPASSWORDS(void);
21  DEFPASSWORDS(const DEFPASSWORDS*);
22  //
23  int Size(void) const { return static_cast<int>(m_passwords.size()); }
24  TCHAR* Get(unsigned int idx) { return m_passwords[idx].Pointer(); }
25  TCHAR* GetName(unsigned int idx) { return m_passnames[idx].Pointer(); }
26  void SetName(unsigned int idx, const WSTR& name);
27  std::vector<WSTR>::iterator Begin(void) { return m_passwords.begin(); }
28  std::vector<WSTR>::iterator End(void) { return m_passwords.end(); }
29  std::vector<WSTR>::iterator BeginN(void) { return m_passwords.begin(); }
30  std::vector<WSTR>::iterator EndN(void) { return m_passwords.end(); }
31  void Save(void);
32  void Add(const WSTR& dir, const WSTR& alias_name);
33  void Del(unsigned int idx);
34  void Up(unsigned int idx);
35  void Down(unsigned int idx);
36  bool IsSame(const TCHAR* dir);
37 
38 private:
39  std::vector<WSTR> m_passwords;
40  std::vector<WSTR> m_passnames;
41 
42 };
std::vector< WSTR >::iterator End(void)
Definition: defpasswords.h:28
std::vector< WSTR >::iterator EndN(void)
Definition: defpasswords.h:30
bool IsSame(const TCHAR *dir)
Definition: defpasswords.cpp:145
void Up(unsigned int idx)
Definition: defpasswords.cpp:119
デフォルトパスワード
Definition: defpasswords.h:17
std::vector< WSTR > m_passwords
Definition: defpasswords.h:39
void Add(const WSTR &dir, const WSTR &alias_name)
Definition: defpasswords.cpp:88
int Size(void) const
Definition: defpasswords.h:23
DEFPASSWORDS(void)
Definition: defpasswords.cpp:22
std::vector< WSTR >::iterator BeginN(void)
Definition: defpasswords.h:29
void SetName(unsigned int idx, const WSTR &name)
Definition: defpasswords.cpp:109
void Del(unsigned int idx)
Definition: defpasswords.cpp:98
std::vector< WSTR > m_passnames
Definition: defpasswords.h:40
TCHAR * GetName(unsigned int idx)
Definition: defpasswords.h:25
TCHAR * Get(unsigned int idx)
Definition: defpasswords.h:24
void Down(unsigned int idx)
Definition: defpasswords.cpp:132
void Save(void)
Definition: defpasswords.cpp:59
std::vector< WSTR >::iterator Begin(void)
Definition: defpasswords.h:27