24#ifndef CSS_LIBRARY_HPP
25#define CSS_LIBRARY_HPP
38#include "css_class.hpp"
60 void add(
const std::string & name,
const css & value);
66 bool get_value(
const std::string & name, std::string & stored_value)
const;
69 void del(
const std::string & name);
72 unsigned int size()
const {
return content.size(); };
78 std::map<std::string, std::string> content;
class css_class gather css attributed under a given label
Definition: css_class.hpp:51
class css_library
Definition: css_library.hpp:46
bool get_value(const std::string &name, std::string &stored_value) const
obtain the definition of the given class
Definition: css_library.cpp:67
std::string get_html_class_definitions() const
provide a css definition of all classes of the library suitable for HTML headers or CSS files
Definition: css_library.cpp:90
unsigned int size() const
return the number of class in that library
Definition: css_library.hpp:72
void add(const css_class &value)
add a new class to the library (must not already exist in the library)
Definition: css_library.cpp:43
void del(const std::string &name)
remove a class from the library
Definition: css_library.cpp:80
bool class_exists(const std::string &name) const
check whether a class has a definition in this library object
Definition: css_library.cpp:60
class managing Cascading Style Sheets attributes
Definition: css.hpp:48