Type.py (8608:02d7ac5fb855) | Type.py (9171:ae88ecf37145) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 401 unchanged lines hidden (view full) --- 410''') 411 412 # For each field 413 code.indent() 414 for dm in self.data_members.values(): 415 code('out << "${{dm.ident}} = " << m_${{dm.ident}} << " ";''') 416 417 if self.isMessage: | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 401 unchanged lines hidden (view full) --- 410''') 411 412 # For each field 413 code.indent() 414 for dm in self.data_members.values(): 415 code('out << "${{dm.ident}} = " << m_${{dm.ident}} << " ";''') 416 417 if self.isMessage: |
418 code('out << "Time = " << getTime() * g_eventQueue_ptr->getClock() << " ";') | 418 code('out << "Time = " << getTime() * g_system_ptr->getClock() << " ";') |
419 code.dedent() 420 421 # Trailer 422 code(''' 423 out << "]"; 424}''') 425 426 code.write(path, "%s.cc" % self.c_ident) --- 352 unchanged lines hidden --- | 419 code.dedent() 420 421 # Trailer 422 code(''' 423 out << "]"; 424}''') 425 426 code.write(path, "%s.cc" % self.c_ident) --- 352 unchanged lines hidden --- |