• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ WObjectFile类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中WObjectFile的典型用法代码示例。如果您正苦于以下问题:C++ WObjectFile类的具体用法?C++ WObjectFile怎么用?C++ WObjectFile使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了WObjectFile类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: readSelf

void WEXPORT WVList::readSelf( WObjectFile& p )
{
    int count;
    p.readObject( &count );
    for( int i=0; i<count; i++ ) {
        add( p.readObject() );
    }
}
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:8,代码来源:wvlist.cpp


示例2: writeSelf

void WEXPORT MAction::writeSelf( WObjectFile& p )
{
    WObject::writeSelf( p );
    p.writeObject( _tool );
//  p.writeObject( &_tagMask );
    p.writeObject( &_name );
    p.writeObject( &_commands );
    p.writeObject( &_hint );
}
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:9,代码来源:maction.cpp


示例3: return

MComponent* WEXPORT MComponent::createSelf( WObjectFile& p )
{
    MProject* project = (MProject*)p.readObject();
    WString ruletag;
    p.readObject( &ruletag );
    MRule* rule = _config->findRule( ruletag );
    if( !rule ) rule = _config->nilRule();
    return( new MComponent( project, rule, "", "" ) );
}
开发者ID:MikeyG,项目名称:open-watcom-v2,代码行数:9,代码来源:mcompon.cpp


示例4: readSelf

void WEXPORT MAction::readSelf( WObjectFile& p )
{
    WObject::readSelf( p );
    _tool = (MTool*)p.readObject();
//  p.readObject( &_tagMask );
    p.readObject( &_name );
    p.readObject( &_commands );
    p.readObject( &_hint );
}
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:9,代码来源:maction.cpp


示例5: attachComponent

MComponent* MProject::attachComponent( WFileName& filename )
{
    MComponent* comp = NULL;
    WObjectFile ot;
    if( ot.open( filename, OStyleReadB ) ) {
        _recursing = true;
        if( ot.version() < 34 ) {
            ot.readObject( this );
            comp = (MComponent*)ot.readObject();
            comp->setRelFilename( filename );
            _components.add( comp );
            setDirty();
        } else {
            char ident[sizeof( _targetIdent ) + 1];
            ot.readObject( ident, sizeof( ident ) - 1 );
            if( !streq( ident, _targetIdent ) ) {
                //bad file format
            } else {
                ot.readObject( this );
                comp = (MComponent*)ot.readObject();
                comp->setRelFilename( filename );
                _components.add( comp );
                setDirty();
            }
        }
        _recursing = false;
        ot.close();
    }
    return( comp );
}
开发者ID:MikeyG,项目名称:open-watcom-v2,代码行数:30,代码来源:mproject.cpp


示例6: readSelf

void WEXPORT MProject::readSelf( WObjectFile& p )
{
    if( !_recursing ) {
        if( p.version() < 26 ) {
            p.readObject( &_filename );
        }
        _filename = p.filename();
//        _filename.toLower();
        setMakefile();
        if( p.version() > 26 ) {
            p.readObject( &_before );
            p.readObject( &_after );
        }
        int icount;
        p.readObject( &icount );
        for( int i=0; i<icount; i++ ) {
            WFileName tgtFilename;
            p.readObject( &tgtFilename );
            if( p.version() < 35 ) {
                tgtFilename.relativeTo( _filename );
            }
            if( !attachComponent( tgtFilename ) ) {
                //this line won't work; no view attached yet!
                //sayf( SayWarning, SayOk, "IDE Error: Unable to read target file '%s'", (const char*)tgtFilename );
            }
        }
        _dirty = false;
        _needsMake = true;
    }
}
开发者ID:MikeyG,项目名称:open-watcom-v2,代码行数:30,代码来源:mproject.cpp


示例7:

void WEXPORT MC2Switch::readSelf( WObjectFile& p )
{
    MSwitch::readSelf( p );
    p.readObject( &_on );
    if( p.version() > 28 ) {
        for( int i=0; i<SWMODE_COUNT; i++ ) {
            p.readObject( &_state[i] );
        }
    } else {
        p.readObject( &_state[SWMODE_RELEASE] );
        _state[SWMODE_DEBUG] = _state[SWMODE_RELEASE];
    }
}
开发者ID:ABratovic,项目名称:open-watcom-v2,代码行数:13,代码来源:mc2swtch.cpp


示例8: writeSelf

void MComponent::writeSelf( WObjectFile& p )
{
    p.writeObject( _project );
    p.writeObject( &rule()->tag(), FORCE );
    WObject::writeSelf( p );
    p.writeObject( &_mask );
    p.writeObject( _autodepend );
    p.writeObject( _autotrack );
    p.writeObject( _mode );
    p.writeObject( &_before );
    p.writeObject( &_after );
    p.writeObject( _target );   // write these last
    p.writeObject( &_items );
}
开发者ID:MikeyG,项目名称:open-watcom-v2,代码行数:14,代码来源:mcompon.cpp


示例9: readSelf

void WEXPORT MState::readSelf( WObjectFile& p )
{
    p.readObject( &_toolTag );
    _tool = _config->findTool( _toolTag );
    if( !_tool ) {
        MRule* r = _config->findRule( _toolTag );       //temp
        if( r ) {
            _tool = r->tool();
        } else {
            _tool = _config->nilTool();
        }
        _toolTag = _tool->tag();
    }
    p.readObject( &_switchTag );
    _config->kludgeString( _switchTag );
    FixTypo( _switchTag );
    _switch = _tool->findSwitch( _switchTag );
    if( p.version() > 27 ) {
        p.readObject( &_mode );
    }
}
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:21,代码来源:mstate.cpp


示例10: writeSelf

void WEXPORT MItem::writeSelf( WObjectFile& p )
{
    WFileName::writeSelf( p );
    p.writeObject( &_ruleTag );
    p.writeObject( &_states );
    p.writeObject( &_actionStates );
    p.writeObject( _parent );
    p.writeObject( _component );
    p.writeObject( _expanded );
    p.writeObject( _owner );
}
开发者ID:ABratovic,项目名称:open-watcom-v2,代码行数:11,代码来源:mitem.cpp


示例11: writeSelf

void WEXPORT MProject::writeSelf( WObjectFile& p )
{
    if( !_recursing ) {
        p.writeObject( &_before );
        p.writeObject( &_after );
        int icount = _components.count();
        p.writeObject( icount );
        for( int i=0; i<icount; i++ ) {
            MComponent* comp = (MComponent*)_components[i];
            WFileName tgtFile( comp->relFilename() );
            p.writeObject( &tgtFile, FORCE );
            if( comp->isDirty() ) {
                if( !tryOpenTargetFile( p.version(), true, comp ) ) {
                    p.setObjOk( false );
                }
            }
        }
        _dirty = false;
    }
}
开发者ID:MikeyG,项目名称:open-watcom-v2,代码行数:20,代码来源:mproject.cpp


示例12: readSelf

void WEXPORT MCState::readSelf( WObjectFile& p )
{
    MState::readSelf( p );
    p.readObject( &_state );
}
开发者ID:jossk,项目名称:open-watcom-v2,代码行数:5,代码来源:mcstate.cpp


示例13: readSelf

void WEXPORT MComponent::readSelf( WObjectFile& p )
{
    WObject::readSelf( p );
    if( p.version() < 26 ) {
        p.readObject( &_filename );
    }
    _filename = p.filename();
//    _filename.toLower();
    if( p.version() < 33 ) {
        p.readObject( _target );
    }
    if( p.version() < 32 ) {
        p.readObject( &_items );
    }
    if( p.version() > 23 ) {
        p.readObject( &_mask );
        if( _config->version() > 0 ) {
            if( _mask.size() == 3 ) {
                _config->setKludge( 3 );
            } else if( _mask.size() == 4 ) {
                _config->setKludge( 4 );
            }
        }
        _config->kludgeMask( _mask );
        _config->zapMask( _mask );
    }
    p.readObject( &_autodepend );
    if( p.version() > 36 ) {
        p.readObject( &_autotrack );
    }
    if( p.version() > 27 ) {
        p.readObject( &_mode );
    }
    if( p.version() > 29 ) {
        p.readObject( &_before );
        p.readObject( &_after );
    }
    if( p.version() > 32 ) {
        p.readObject( _target );
    }
    if( p.version() > 31 ) {
        p.readObject( &_items );
    }
    if( _mask[1] == 'v' ) {
        //turn VP targets into MFC targets - VP targets no longer exist
        _mask.setChar( 1, 'm' );
        WFileName fn;
        _filename.noPath( fn );
        WString ruletag;
        if( _mask[0] == 'w' ) {
            ruletag = "WEXE";
        } else {
            ruletag = "NEXE";
        }
        WFileName       tmp_fn( filename() );
        MRule* tmp_rule = _config->findRule( ruletag );
        target()->setRule( tmp_rule );
    }
}
开发者ID:MikeyG,项目名称:open-watcom-v2,代码行数:59,代码来源:mcompon.cpp


示例14: writeSelf

void WEXPORT MCState::writeSelf( WObjectFile& p )
{
    MState::writeSelf( p );
    p.writeObject( _state );
}
开发者ID:jossk,项目名称:open-watcom-v2,代码行数:5,代码来源:mcstate.cpp


示例15: readSelf

void WEXPORT MItem::readSelf( WObjectFile& p )
{
    WFileName::readSelf( p );
    p.readObject( &_ruleTag );
    _rule = _config->findRule( _ruleTag );
    if( !_rule ) {
        _rule = _config->nilRule();
    }
    p.readObject( &_states );
    if( p.version() > 24 ) {
        p.readObject( &_actionStates );
    }
    _parent = (MItem*)p.readObject();
    _component = (MComponent*)p.readObject();
    updateAttribs();
    if( p.version() > 30 ) {
        p.readObject( &_expanded );
    }
    if( p.version() > 37 ) {
        p.readObject( &_owner );
    } else {
        _owner = MITEM_OWNER_IDE;
    }
    if( p.version() < 28 ) {
        bool temp;
        p.readObject( &temp );  //include
        p.readObject( &temp );  //exclude
        p.readObject( &temp );  //shadow
    }
    if( p.version() < 24 ) {
        WString mask;
        p.readObject( &mask );
        _component->mask() = mask;
    }

    pruneStates( _states );

    //this part needs to be done after the item is completely constructed!
    int icount = _actionStates.count();
    if( icount ) {
        WVList actions;
        addActions( actions );
        for( int i=icount; i>0; ) {
            i--;
            ActionStates* astates = (ActionStates*)_actionStates[i];
            if( astates->linkup( actions ) ) {
                pruneStates( astates->states() );
            } else {
                delete _actionStates.removeAt( i );
            }
        }
    }
}
开发者ID:ABratovic,项目名称:open-watcom-v2,代码行数:53,代码来源:mitem.cpp


示例16: writeSelf

void WEXPORT MState::writeSelf( WObjectFile& p )
{
    p.writeObject( &_toolTag );
    p.writeObject( &_switchTag );
    p.writeObject( _mode );
}
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:6,代码来源:mstate.cpp


示例17: readSelf

void WEXPORT MFamily::readSelf( WObjectFile& p )
{
    WObject::readSelf( p );
    p.readObject( &_name );
    p.readObject( &_switches );
}
开发者ID:ABratovic,项目名称:open-watcom-v2,代码行数:6,代码来源:mfamily.cpp


示例18: writeSelf

void WEXPORT MFamily::writeSelf( WObjectFile& p )
{
    WObject::writeSelf( p );
    p.writeObject( &_name );
    p.writeObject( &_switches );
}
开发者ID:ABratovic,项目名称:open-watcom-v2,代码行数:6,代码来源:mfamily.cpp



注:本文中的WObjectFile类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ WP类代码示例发布时间:2022-05-31
下一篇:
C++ WONUpdateCtrl类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap