Panda3D

recorderHeader.I

00001 // Filename: recorderHeader.I
00002 // Created by:  drose (29Jan04)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: RecorderHeader::Constructor
00018 //       Access: Published
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE RecorderHeader::
00022 RecorderHeader() {
00023   time(&_start_time);
00024   _random_seed = (int)_start_time;
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: RecorderHeader::Copy Constructor
00029 //       Access: Published
00030 //  Description:
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE RecorderHeader::
00033 RecorderHeader(const RecorderHeader &copy) :
00034   _start_time(copy._start_time),
00035   _random_seed(copy._random_seed)
00036 {
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: RecorderHeader::Copy Assignment Operator
00041 //       Access: Published
00042 //  Description:
00043 ////////////////////////////////////////////////////////////////////
00044 INLINE void RecorderHeader::
00045 operator = (const RecorderHeader &copy) {
00046   _start_time = copy._start_time;
00047   _random_seed = copy._random_seed;
00048 }
00049 
00050 ////////////////////////////////////////////////////////////////////
00051 //     Function: RecorderHeader::Destructor
00052 //       Access: Published
00053 //  Description:
00054 ////////////////////////////////////////////////////////////////////
00055 INLINE RecorderHeader::
00056 ~RecorderHeader() {
00057 }
 All Classes Functions Variables Enumerations