Last change
on this file since 2936 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 | #include "RpObject.h" |
---|
12 | |
---|
13 | #ifndef RAPPTURE_STRING_H |
---|
14 | #define RAPPTURE_STRING_H |
---|
15 | |
---|
16 | namespace Rappture { |
---|
17 | |
---|
18 | class String : public Object |
---|
19 | { |
---|
20 | public: |
---|
21 | |
---|
22 | String ( const char *path, |
---|
23 | const char *val); |
---|
24 | |
---|
25 | String ( const char *path, |
---|
26 | const char *val, |
---|
27 | const char *label, |
---|
28 | const char *desc, |
---|
29 | const char *hints, |
---|
30 | size_t width, |
---|
31 | size_t height); |
---|
32 | |
---|
33 | String ( const String& o ); |
---|
34 | virtual ~String (); |
---|
35 | |
---|
36 | Accessor<const char *> def; |
---|
37 | Accessor<const char *> cur; |
---|
38 | Accessor<size_t> width; |
---|
39 | Accessor<size_t> height; |
---|
40 | |
---|
41 | const char *xml(size_t indent, size_t tabstop); |
---|
42 | const int is() const; |
---|
43 | |
---|
44 | private: |
---|
45 | |
---|
46 | }; |
---|
47 | |
---|
48 | } // namespace Rappture |
---|
49 | |
---|
50 | /*--------------------------------------------------------------------------*/ |
---|
51 | /*--------------------------------------------------------------------------*/ |
---|
52 | |
---|
53 | #endif // RAPPTURE_STRING_H |
---|
Note: See
TracBrowser
for help on using the repository browser.