ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/FAS/src/extradata.cpp
(Generate patch)

Comparing trunk/FAS/src/extradata.cpp (file contents):
Revision 67 by tim, Tue Aug 13 17:07:15 2002 UTC vs.
Revision 83 by tim, Fri Aug 16 15:30:40 2002 UTC

# Line 1 | Line 1
1 + /**********************************************************************
2 + *           Copyright (C) 2002-2003 by Gezelter's Group
3 + *This program is free software; you can redistribute it and/or modify
4 + *it under the terms of the GNU General Public License as published by
5 + *the Free Software Foundation version 2 of the License.
6 + *
7 + *This program is distributed in the hope that it will be useful,
8 + *but WITHOUT ANY WARRANTY; without even the implied warranty of
9 + *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 + *GNU General Public License for more details.
11 + *
12 + ************************************************************************
13 + *Author: Teng Lin               Email:  tlin@nd.edu
14 + *Date: 08/13/2002               Version: 1.0
15 + *
16 + ************************************************************************
17 + *Description:
18 + *
19 + ***********************************************************************/
20   #include <algorithm>
21   #include "extradata.h"
22  
23 < //member function for TExtraData
23 > /***********************************************************************
24 > * Class TExtraData
25 > ***********************************************************************/
26 >
27   TExtraData::TExtraData()
28   {
29          _ident = "unknown";
# Line 31 | Line 53 | TEnergyData::TEnergyData(const TEnergyData &energyData
53          _type = TExtraDataType::ENERGY;
54   }
55  
56 + /***********************************************************************
57 + * Class TExtraDataList
58 + ***********************************************************************/
59 + void TExtraDataList::AddExtraData(TExtraData *extraData)
60 + {
61 +  if (extraData != NULL)
62 +  {
63 +    _extraDataList.push_back(extraData);
64 +  }
65 +
66 + }
67 +
68 + void TExtraDataList::RemoveExtraData(TExtraData *extraData)
69 + {
70 +  vector<TExtraData *>::iterator i;
71 +
72 +  i = find(_extraDataList.begin(), _extraDataList.end(), extraData);
73 +
74 +  if (i != _extraDataList.end())
75 +  {
76 +    _extraDataList.erase(i);
77 +  }
78 +  else
79 +  {//warning
80 +
81 +  }
82 +
83 + }
84 +
85 + TExtraData *TExtraDataList::GetExtraData(int extraDataType)
86 + {
87 +
88 + }
89 +
90 + TExtraData *TExtraDataList::GetExtraData(string attr)
91 + {
92 +
93 + }
94 +
95 + /***********************************************************************
96 + * Class TEnergyData
97 + ***********************************************************************/
98 +
99   TEnergyData::TEnergyData(const TEnergyData &energyData) : TExtraData(energyData)
100   {
101          _energy = energyData._energy;  
# Line 96 | Line 161 | float *TEnergyData::GetEnergy(int energyType)
161                  return NULL;
162          }
163   }
164 +
165 + /***********************************************************************
166 + * Class TBitVector
167 + ***********************************************************************/
168 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines