class ulog::Entry — HIRO 0.7.0 documentation

# class ulog::Entry

## Overview

    #include <Ulog.h>

    class Entry: public utils::LogEntry {
    public:
        // construction

        Entry(Type type, Category categ, const std::string& msg, const std::string& caller);

        // methods

        Category GetCategory() const;
        virtual std::string ToString(const std::string& time_format = "%Y-%m-%d %H:%M:%S") const;
    };

### Inherited Members

    public:
        // enums

        enum Type;

        // methods

        static std::vector<Type> GetWECTypes();
        static std::vector<Type> GetIWECTypes();
        static std::string TypeToString(Type type);
        static std::wstring TypeToWstring(Type type);
        Type GetType() const;
        const std::string& GetMessage() const;
        const std::string& GetCaller() const;
        virtual std::string ToString(const std::string& time_format = "%Y-%m-%d %H:%M:%S") const;
        bool IsRead() const;
        void Read();

## Detailed Documentation

### Methods

    virtual std::string ToString(const std::string& time_format = "%Y-%m-%d %H:%M:%S") const

Print the entry to a string.

The string format is “[type] caller: message”.