Annotation of nono/vm/event.cpp, revision 1.1.1.9

1.1       root        1: //
                      2: // nono
1.1.1.4   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
1.1.1.7   root        7: //
                      8: // イベント
                      9: //
                     10: 
1.1       root       11: #include "event.h"
1.1.1.3   root       12: #include "scheduler.h"
1.1       root       13: 
                     14: // コンストラクタ
                     15: Event::Event()
                     16: {
                     17: }
                     18: 
1.1.1.6   root       19: // コンストラクタ (dev 指定あり)
                     20: Event::Event(Device *dev_)
                     21:        : Event()
                     22: {
                     23:        dev = dev_;
                     24: }
                     25: 
1.1       root       26: // デストラクタ
                     27: Event::~Event()
                     28: {
                     29: }
1.1.1.2   root       30: 
                     31: // 名前をセットする
                     32: void
                     33: Event::SetName(const std::string& val)
                     34: {
                     35:        name = val;
                     36:        if (name.length() > 25) {
1.1.1.9 ! root       37:                dev->putmsgn("Event Name \"%s\" is too long(%u chars)",
        !            38:                        name.c_str(), (uint)name.length());
1.1.1.2   root       39:                name.resize(25);
                     40:        }
                     41: }

unix.superglobalmegacorp.com

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