Annotation of nono/host/driver.cpp, revision 1.1.1.6

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2022 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
                      8: // ホストドライバ (基本クラス)
                      9: //
                     10: 
                     11: #include "driver.h"
                     12: #include "hostdevice.h"
                     13: 
                     14: // コンストラクタ
1.1.1.5   root       15: Driver::Driver(HostDevice *hostdev_, const std::string& drivername_)
1.1.1.2   root       16:        : inherited(OBJ_NONE)
1.1       root       17: {
                     18:        hostdev = hostdev_;
                     19:        drivername = drivername_;
                     20: 
1.1.1.2   root       21:        SetName(hostdev->GetName() + "." + drivername);
                     22: 
1.1       root       23:        // ドライバのログレベルは常にホストデバイス(親)のログレベルに従属なので
                     24:        // ドライバオブジェクトにログエイリアスは不要。
                     25:        ClearAlias();
                     26: 
                     27:        // コンストラクト後ただちにログ出力できるようここで一度追従しておく。
                     28:        // 以降はホストデバイスの SetLogLevel() で変更する。
                     29:        loglevel = hostdev->loglevel;
                     30: }
                     31: 
                     32: // デストラクタ
                     33: Driver::~Driver()
                     34: {
                     35: }
                     36: 
                     37: // ドライバ初期化
                     38: bool
1.1.1.4   root       39: Driver::InitDriver(bool startup)
1.1       root       40: {
                     41:        putmsg(1, "created");
                     42:        return true;
                     43: }
                     44: 
                     45: // Driver の Dispatch() は udata を返す。
                     46: int
                     47: Driver::Dispatch(int udata)
                     48: {
                     49:        return udata;
                     50: }
                     51: 
                     52: // モニタ (ドライバ依存情報のみ)
                     53: void
1.1.1.6 ! root       54: Driver::MonitorScreenMD(TextScreen& screen, int y)
1.1       root       55: {
                     56: }

unix.superglobalmegacorp.com

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