server-admin-panel/src/shadowrun/HtmxShAttributeList.hpp

21 lines
687 B
C++

#ifndef HTMXSHATTRIBUTELIST_H
#define HTMXSHATTRIBUTELIST_H
#include "HtmxObject.h"
#include <vector>
#include <string>
#include <map>
class HtmxShAttributeList : public HtmxObject {
public:
// create new item list
HtmxShAttributeList(const std::string& id, const std::vector<std::string>& itemList, std::map<std::string, std::string>& data);
// create new item list where each item as a value
HtmxShAttributeList(const std::string& id, const std::vector<std::pair<std::string, std::string>>& itemValueList);
static void genIds(std::vector<std::string>& vec, const std::string& id, const std::vector<std::string>& itemList);
};
#endif // HTMXSHATTRIBUTELIST_H