#include <incrontab.h>
Public Member Functions | |
| IncronTab () | |
| Constructor. | |
| ~IncronTab () | |
| Destructor. | |
| void | Add (const IncronTabEntry &rEntry) |
| Add an entry to the table. | |
| void | Clear () |
| Removes all entries. | |
| bool | IsEmpty () const |
| Checks whether the table is empty. | |
| int | GetCount () const |
| Returns the count of entries. | |
| IncronTabEntry & | GetEntry (int index) |
| Returns an entry. | |
| bool | Load (const std::string &rPath) |
| Loads the table. | |
| bool | Save (const std::string &rPath) |
| Saves the table. | |
Static Public Member Functions | |
| static bool | CheckUser (const std::string &rUser) |
| Checks whether an user has permission to use incron. | |
| static std::string | GetUserTablePath (const std::string &rUser) |
| Composes a path to an user incron table file. | |
| static std::string | GetSystemTablePath (const std::string &rName) |
| Composes a path to a system incron table file. | |
Protected Attributes | |
| std::deque< IncronTabEntry > | m_tab |
| incron table | |
| IncronTab::IncronTab | ( | ) | [inline] |
Constructor.
| IncronTab::~IncronTab | ( | ) | [inline] |
Destructor.
| void IncronTab::Add | ( | const IncronTabEntry & | rEntry | ) | [inline] |
Add an entry to the table.
| [in] | rEntry | table entry |
| void IncronTab::Clear | ( | ) | [inline] |
Removes all entries.
| bool IncronTab::IsEmpty | ( | ) | const [inline] |
Checks whether the table is empty.
| int IncronTab::GetCount | ( | ) | const [inline] |
Returns the count of entries.
| IncronTabEntry& IncronTab::GetEntry | ( | int | index | ) | [inline] |
Returns an entry.
| bool IncronTab::Load | ( | const std::string & | rPath | ) |
Loads the table.
| [in] | rPath | path to a source table file |
| bool IncronTab::Save | ( | const std::string & | rPath | ) |
Saves the table.
| [in] | rPath | path to a destination table file |
| bool IncronTab::CheckUser | ( | const std::string & | rUser | ) | [static] |
Checks whether an user has permission to use incron.
| [in] | rUser | user name |
| std::string IncronTab::GetUserTablePath | ( | const std::string & | rUser | ) | [static] |
Composes a path to an user incron table file.
| [in] | rUser | user name |
| std::string IncronTab::GetSystemTablePath | ( | const std::string & | rName | ) | [static] |
Composes a path to a system incron table file.
| [in] | rName | table name (pseudouser) |
std::deque<IncronTabEntry> IncronTab::m_tab [protected] |
incron table
1.5.1