Show
Ignore:
Timestamp:
08/10/07 17:24:12 (6 years ago)
Author:
hvolos
Message:

Added the meta-data to realChar, it compiles, didn't have type to test it, hope it works

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • standardInterfaces/branches/standardInterfaces-metadata/realChar_u.cpp

    r4065 r4665  
    3434    data_servant = new realChar::usesPort(this); 
    3535    data_servant_var = data_servant->_this(); 
    36    
     36     
     37    // initialize meta data 
     38    InitializeMetaData( metadata ); 
    3739} 
    3840 
     
    6567} 
    6668 
     69void standardInterfaces_i::realChar_u::pushPacket( 
     70        const PortTypes::CharSequence &I, 
     71        const standardInterfaces::MetaData &packet_data) 
     72{ 
     73    // update packet meta data 
     74    metadata = packet_data; 
     75 
     76    pushPacket(I); 
     77} 
     78 
    6779void standardInterfaces_i::realChar_u::pushPacket(const PortTypes::CharSequence &I) 
    6880{ 
    6981    omni_mutex_lock l(port_mutex); 
    7082    for (unsigned int i = 0; i < dest_ports.size(); ++i) { 
    71         dest_ports[i].port_obj->pushPacket(I); 
     83        dest_ports[i].port_obj->pushPacket(I,metadata); 
    7284    } 
    7385} 
     86 
    7487 
    7588realChar::usesPort::usesPort(standardInterfaces_i::realChar_u *_base) : base(_base)