--- trunk/FAS/src/extradata.cpp 2002/08/13 17:07:15 67 +++ trunk/FAS/src/extradata.cpp 2002/08/16 15:30:40 83 @@ -1,7 +1,29 @@ +/********************************************************************** +* Copyright (C) 2002-2003 by Gezelter's Group +*This program is free software; you can redistribute it and/or modify +*it under the terms of the GNU General Public License as published by +*the Free Software Foundation version 2 of the License. +* +*This program is distributed in the hope that it will be useful, +*but WITHOUT ANY WARRANTY; without even the implied warranty of +*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +*GNU General Public License for more details. +* +************************************************************************ +*Author: Teng Lin Email: tlin@nd.edu +*Date: 08/13/2002 Version: 1.0 +* +************************************************************************ +*Description: +* +***********************************************************************/ #include #include "extradata.h" -//member function for TExtraData +/*********************************************************************** +* Class TExtraData +***********************************************************************/ + TExtraData::TExtraData() { _ident = "unknown"; @@ -31,6 +53,49 @@ TEnergyData::TEnergyData() _type = TExtraDataType::ENERGY; } +/*********************************************************************** +* Class TExtraDataList +***********************************************************************/ +void TExtraDataList::AddExtraData(TExtraData *extraData) +{ + if (extraData != NULL) + { + _extraDataList.push_back(extraData); + } + +} + +void TExtraDataList::RemoveExtraData(TExtraData *extraData) +{ + vector::iterator i; + + i = find(_extraDataList.begin(), _extraDataList.end(), extraData); + + if (i != _extraDataList.end()) + { + _extraDataList.erase(i); + } + else + {//warning + + } + +} + +TExtraData *TExtraDataList::GetExtraData(int extraDataType) +{ + +} + +TExtraData *TExtraDataList::GetExtraData(string attr) +{ + +} + +/*********************************************************************** +* Class TEnergyData +***********************************************************************/ + TEnergyData::TEnergyData(const TEnergyData &energyData) : TExtraData(energyData) { _energy = energyData._energy; @@ -96,3 +161,8 @@ float *TEnergyData::GetEnergy(int energyType) return NULL; } } + +/*********************************************************************** +* Class TBitVector +***********************************************************************/ +