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 "frame.h" |
21 |
|
|
22 |
+ |
/*********************************************************************** |
23 |
+ |
* Class TFrame |
24 |
+ |
***********************************************************************/ |
25 |
|
TFrame::TFrame() |
26 |
|
{ |
27 |
|
|
28 |
|
} |
29 |
|
|
30 |
+ |
TFrame::TFrame(const TFrame &src) |
31 |
+ |
{ |
32 |
+ |
|
33 |
+ |
} |
34 |
+ |
|
35 |
|
TFrame::~TFrame() |
36 |
|
{ |
37 |
|
|
38 |
|
} |
39 |
+ |
/* |
40 |
+ |
void TFrame::AddExtraData(TExtraData *extraData) |
41 |
+ |
{ |
42 |
+ |
if (extraData != NULL) |
43 |
+ |
{ |
44 |
+ |
_extraDataList.push_back(extraData); |
45 |
+ |
} |
46 |
+ |
|
47 |
+ |
} |
48 |
+ |
|
49 |
+ |
void TFrame::RemoveExtraData(TExtraData *extraData) |
50 |
+ |
{ |
51 |
+ |
vector<TExtraData *>::iterator i; |
52 |
+ |
|
53 |
+ |
i = find(_extraDataList.begin(), _extraDataList.end(), extraData); |
54 |
+ |
|
55 |
+ |
if (i != _extraDataList.end()) |
56 |
+ |
{ |
57 |
+ |
_extraDataList.erase(i); |
58 |
+ |
} |
59 |
+ |
else |
60 |
+ |
{//warning |
61 |
+ |
|
62 |
+ |
} |
63 |
+ |
|
64 |
+ |
} |
65 |
+ |
|
66 |
+ |
TExtraData *TFrame::GetExtraData(int extraDataType) |
67 |
+ |
{ |
68 |
+ |
|
69 |
+ |
} |
70 |
+ |
|
71 |
+ |
TExtraData *TFrame::GetExtraData(string attr) |
72 |
+ |
{ |
73 |
+ |
|
74 |
+ |
} |
75 |
+ |
*/ |
76 |
+ |
void TFrame::Reserve(int numAtom) |
77 |
+ |
{ |
78 |
+ |
|
79 |
+ |
} |
80 |
+ |
|
81 |
+ |
void TFrame::Init() |
82 |
+ |
{ |
83 |
+ |
|
84 |
+ |
} |
85 |
+ |
|