summaryrefslogtreecommitdiff
path: root/TAO/local/bin/Event_Service/GPlot_File.i
blob: ab9f235dc390c3ddc7ed2c3a82b3d63df09d2691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// $Id$

ACE_INLINE
ACE_GPlot_File::ACE_GPlot_File (void)
  : closed_ (1)
{
}


ACE_INLINE
ACE_GPlot_File::~ACE_GPlot_File (void)
{
  this->close ();
}


ACE_INLINE
void
ACE_GPlot_File::set_greatest (long entry, long value)
{
  long old_value;

  // If there was no previous value, or the <value> is greater than
  // the previous value, set a new value.
  if (this->get (entry, old_value) == -1 ||
      value > old_value)
    this->set (entry, value);
}


ACE_INLINE
void
ACE_GPlot_File::set_greatest (long entry, float value)
{
  float old_value;

  // If there was no previous value, or the <value> is greater than
  // the previous value, set a new value.
  if (this->get (entry, old_value) == -1 ||
      value > old_value)
    this->set (entry, value);
}


ACE_INLINE
void
ACE_GPlot_File::set_least (long entry, long value)
{
  long old_value;

  // If there was no previous value, or the <value> is less than
  // the previous value, set a new value.
  if (this->get (entry, old_value) == -1 ||
      value < old_value)
    this->set (entry, value);
}


ACE_INLINE
void
ACE_GPlot_File::set_least (long entry, float value)
{
  float old_value;

  // If there was no previous value, or the <value> is less than
  // the previous value, set a new value.
  if (this->get (entry, old_value) == -1 ||
      value < old_value)
    this->set (entry, value);
}