summaryrefslogtreecommitdiffstats
path: root/src/trex_client_config.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-06-27 17:15:05 +0300
committerimarom <imarom@cisco.com>2016-07-03 13:40:20 +0300
commitf03fa158116cfd65659d14698c91446dc9bdb4c4 (patch)
tree7a270a99b50c4409c5a40acf9d14cccc339cc3ab /src/trex_client_config.h
parent6535523a2768a5c867fd22b4fa62c7fb43fd9ad8 (diff)
draft #3 of client config
Diffstat (limited to 'src/trex_client_config.h')
-rw-r--r--src/trex_client_config.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/trex_client_config.h b/src/trex_client_config.h
index 442d228b..f934517d 100644
--- a/src/trex_client_config.h
+++ b/src/trex_client_config.h
@@ -41,13 +41,14 @@ public:
};
/**
- * describes a single client group
- * configuration
+ * describes a single client config
+ * entry loaded from the config file
+ *
*/
-class ClientGroup {
+class ClientCfgEntry {
public:
- ClientGroup() {
+ ClientCfgEntry() {
reset();
}
@@ -104,10 +105,10 @@ private:
* describes the DB of every client group
*
*/
-class ClientGroupsDB {
+class ClientCfgDB {
public:
- ClientGroupsDB() {
+ ClientCfgDB() {
m_is_empty = true;
m_cache_group = NULL;
}
@@ -134,8 +135,8 @@ public:
* a group that contains this IP
*
*/
- ClientGroup * lookup(uint32_t ip);
- ClientGroup * lookup(const std::string &ip);
+ ClientCfgEntry * lookup(uint32_t ip);
+ ClientCfgEntry * lookup(const std::string &ip);
private:
@@ -148,10 +149,10 @@ private:
void verify() const;
/* maps the IP start value to client groups */
- std::map<uint32_t, ClientGroup> m_groups;
- ClientGroup *m_cache_group;
- std::string m_filename;
- bool m_is_empty;
+ std::map<uint32_t, ClientCfgEntry> m_groups;
+ ClientCfgEntry *m_cache_group;
+ std::string m_filename;
+ bool m_is_empty;
};
#endif /* __TREX_CLIENT_CONFIG_H__ */