| 1234567891011121314151617181920212223242526 |
- //
- // properties.hpp
- // logger
- //
- // Created by Sam Jaffe on 10/3/15.
- //
- //
- #pragma once
- #include <map>
- #include <string>
- #include <vector>
- namespace logging {
- struct properties {
- operator std::string const &() const;
- properties const & operator[](std::size_t idx) const;
- properties const & operator[](std::string const & key) const;
- const enum { STRING, OBJECT, ARRAY } type;
- const std::map<std::string, properties> obj;
- const std::vector<properties> array;
- const std::string value;
- };
- }
|