Last change
on this file since 1560 was
1560,
checked in by dkearney, 15 years ago
|
updates to the object system, fixed up tree and xml parser objects, added some basic tests for them and adopted number object to accept xml text and configure itself from the parsed xml. added fermi3.cc example program which contains suggested interface from apps meeting.
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * ====================================================================== |
---|
3 | * AUTHOR: Derrick Kearney, Purdue University |
---|
4 | * Copyright (c) 2005-2009 Purdue Research Foundation |
---|
5 | * |
---|
6 | * See the file "license.terms" for information on usage and |
---|
7 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
8 | * ====================================================================== |
---|
9 | */ |
---|
10 | #include <errno.h> |
---|
11 | |
---|
12 | #include "RpObject.h" |
---|
13 | |
---|
14 | #ifndef RAPPTURE_AXISMARKER_H |
---|
15 | #define RAPPTURE_AXISMARKER_H |
---|
16 | |
---|
17 | namespace Rappture { |
---|
18 | |
---|
19 | class AxisMarker : public Object |
---|
20 | { |
---|
21 | public: |
---|
22 | |
---|
23 | AxisMarker(); |
---|
24 | |
---|
25 | AxisMarker(const char *axisName, const char *label, |
---|
26 | const char *style, double at); |
---|
27 | |
---|
28 | AxisMarker(const AxisMarker& o); |
---|
29 | |
---|
30 | virtual ~AxisMarker(); |
---|
31 | |
---|
32 | void axisName (const char *a); |
---|
33 | const char *axisName (void) const; |
---|
34 | |
---|
35 | void style (const char *s); |
---|
36 | const char *style (void) const; |
---|
37 | |
---|
38 | void at (double a); |
---|
39 | double at (void) const; |
---|
40 | |
---|
41 | const char *xml(size_t indent, size_t tabstop); |
---|
42 | const int is(void) const; |
---|
43 | |
---|
44 | protected: |
---|
45 | |
---|
46 | const char *_axisName; |
---|
47 | const char *_style; |
---|
48 | double _at; |
---|
49 | }; |
---|
50 | |
---|
51 | } // namespace Rappture |
---|
52 | |
---|
53 | /*--------------------------------------------------------------------------*/ |
---|
54 | |
---|
55 | #endif // RAPPTURE_AXISMARKER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.