servlib/bundling/ForwardingInfo.cc
changeset 0 2b3e5ec03512
equal deleted inserted replaced
-1:000000000000 0:2b3e5ec03512
       
     1 /*
       
     2  *    Copyright 2006-2007 The MITRE Corporation
       
     3  * 
       
     4  *    Licensed under the Apache License, Version 2.0 (the "License");
       
     5  *    you may not use this file except in compliance with the License.
       
     6  *    You may obtain a copy of the License at
       
     7  * 
       
     8  *        http://www.apache.org/licenses/LICENSE-2.0
       
     9  * 
       
    10  *    Unless required by applicable law or agreed to in writing, software
       
    11  *    distributed under the License is distributed on an "AS IS" BASIS,
       
    12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    13  *    See the License for the specific language governing permissions and
       
    14  *    limitations under the License.
       
    15  *
       
    16  *    The US Government will not be charged any license fee and/or royalties
       
    17  *    related to this software. Neither name of The MITRE Corporation; nor the
       
    18  *    names of its contributors may be used to endorse or promote products
       
    19  *    derived from this software without specific prior written permission.
       
    20  */
       
    21 
       
    22 #ifdef HAVE_CONFIG_H
       
    23 #  include <dtn-config.h>
       
    24 #endif
       
    25 
       
    26 #include "ForwardingInfo.h"
       
    27 
       
    28 namespace dtn {
       
    29 
       
    30 void 
       
    31 ForwardingInfo::serialize(oasys::SerializeAction *a)
       
    32 {
       
    33     a->process("state", &state_);
       
    34     a->process("action", &action_);
       
    35     a->process("link_name", &link_name_);
       
    36     a->process("regid", &regid_);
       
    37     a->process("remote_eid", &remote_eid_);
       
    38     a->process("timestamp_sec", &timestamp_.sec_);
       
    39     a->process("timestamp_usec", &timestamp_.usec_);
       
    40 }
       
    41 
       
    42 } // namespace dtn