Annotation of nono/cli/cuimessage.h, revision 1.1

1.1     ! root        1: //
        !             2: // nono
        !             3: // Copyright (C) 2021 nono project
        !             4: // Licensed under nono-license.txt
        !             5: //
        !             6: 
        !             7: #pragma once
        !             8: 
        !             9: #include "uimessage.h"
        !            10: #include <array>
        !            11: #include <functional>
        !            12: 
        !            13: class CUIMessage
        !            14: {
        !            15:        using Func = std::function<void(const UIMessage&)>;
        !            16:  public:
        !            17:        // UIMessage を func に接続する
        !            18:        static void Connect(UIMessage::ID id, Func func);
        !            19: 
        !            20:        // UIMessage を処理する
        !            21:        static void Process(UIMessage::Queue& queue);
        !            22: 
        !            23:  private:
        !            24:        static std::array<Func, UIMessage::ID_MAX> func_table;
        !            25: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.