Esempio n. 1
0
void WEXPORT WVList::writeSelf( WObjectFile& p )
{
    p.writeObject( count() );
    for( int i=0; i<count(); i++ ) {
        p.writeObject( _set[i] );
    }
}
Esempio n. 2
0
void WEXPORT MTool::writeSelf( WObjectFile& p )
{
    WObject::writeSelf( p );
    p.writeObject( &_tag );
    p.writeObject( &_name );
    p.writeObject( &_families );
    p.writeObject( &_incTools );
}
Esempio n. 3
0
void WEXPORT WString::writeSelf( WObjectFile& p )
{
    WObject::writeSelf( p );
    p.writeObject( size() );
    if( size() > 0 ) {
        p.writeObject( _value );
    }
}
Esempio n. 4
0
void WEXPORT WRect::writeSelf( WObjectFile &p ) {
/***********************************************/

    p.writeObject( _x );
    p.writeObject( _y );
    p.writeObject( _w );
    p.writeObject( _h );
}
Esempio n. 5
0
void WEXPORT MC2Switch::writeSelf( WObjectFile& p )
{
    MSwitch::writeSelf( p );
    p.writeObject( &_on );
    for( int i=0; i<SWMODE_COUNT; i++ ) {
        p.writeObject( _state[i] );
    }
}
Esempio n. 6
0
void WEXPORT MAction::writeSelf( WObjectFile& p )
{
    WObject::writeSelf( p );
    p.writeObject( _tool );
//  p.writeObject( &_tagMask );
    p.writeObject( &_name );
    p.writeObject( &_commands );
    p.writeObject( &_hint );
}
Esempio n. 7
0
void WEXPORT MConfig::writeSelf( WObjectFile& p )
{
    WObject::writeSelf( p );
    p.writeObject( &_tools );
    p.writeObject( &_rules );
    p.writeObject( &_actions );
    p.writeObject( &_editor );
    p.writeObject( &_browse );
    p.writeObject( &_browseMerge );
}
Esempio n. 8
0
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 );
}
Esempio n. 9
0
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;
    }
}
Esempio n. 10
0
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 );
}
Esempio n. 11
0
void WEXPORT MState::writeSelf( WObjectFile& p )
{
    p.writeObject( &_toolTag );
    p.writeObject( &_switchTag );
    p.writeObject( _mode );
}
Esempio n. 12
0
void WEXPORT MFamily::writeSelf( WObjectFile& p )
{
    WObject::writeSelf( p );
    p.writeObject( &_name );
    p.writeObject( &_switches );
}
Esempio n. 13
0
void WEXPORT MCState::writeSelf( WObjectFile& p )
{
    MState::writeSelf( p );
    p.writeObject( _state );
}