xref: /petsc/src/sys/totalview/tv_data_display.h (revision 3ea99036a5fedea4d39e7e77471d0ab500c249d7)
1*3ea99036SJacob Faibussowitsch #ifndef TV_DATA_DISPLAY_H
2*3ea99036SJacob Faibussowitsch #define TV_DATA_DISPLAY_H
3*3ea99036SJacob Faibussowitsch 
4b55407b6SBarry Smith /*
5b55407b6SBarry Smith  * $Header: /home/tv/src/debugger/src/datadisp/tv_data_display.h,v 1.3 2010-04-21 15:32:50 tringali Exp $
6b55407b6SBarry Smith  * $Locker:  $
7b55407b6SBarry Smith 
8b55407b6SBarry Smith    Copyright (c) 2010, Rogue Wave Software, Inc.
9b55407b6SBarry Smith 
10b55407b6SBarry Smith    Permission is hereby granted, free of charge, to any person obtaining a copy
11b55407b6SBarry Smith    of this software and associated documentation files (the "Software"), to deal
12b55407b6SBarry Smith    in the Software without restriction, including without limitation the rights
13b55407b6SBarry Smith    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14b55407b6SBarry Smith    copies of the Software, and to permit persons to whom the Software is
15b55407b6SBarry Smith    furnished to do so, subject to the following conditions:
16b55407b6SBarry Smith 
17b55407b6SBarry Smith    The above copyright notice and this permission notice shall be included in
18b55407b6SBarry Smith    all copies or substantial portions of the Software.
19b55407b6SBarry Smith 
20b55407b6SBarry Smith    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21b55407b6SBarry Smith    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22b55407b6SBarry Smith    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23b55407b6SBarry Smith    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24b55407b6SBarry Smith    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25b55407b6SBarry Smith    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26b55407b6SBarry Smith    THE SOFTWARE.
27b55407b6SBarry Smith 
28b55407b6SBarry Smith  * Update log
29b55407b6SBarry Smith  *
30b55407b6SBarry Smith  * Sep 25 2009 SJT: Add idempotence header.
31b55407b6SBarry Smith  * Jul 1  2009 SJT: Created.
32b55407b6SBarry Smith  *
33b55407b6SBarry Smith  */
34b55407b6SBarry Smith 
35fa91756fSBarry Smith #include <petscsys.h>
36fa91756fSBarry Smith 
37519f805aSKarl Rupp #if defined(__cplusplus)
38b55407b6SBarry Smith extern "C" {
39b55407b6SBarry Smith #endif
40b55407b6SBarry Smith 
419371c9d4SSatish Balay enum TV_format_result {
42b55407b6SBarry Smith   TV_format_OK,     /* Type is known, and successfully converted */
43b55407b6SBarry Smith   TV_format_failed, /* Type is known, but could not convert it */
44b55407b6SBarry Smith   TV_format_raw,    /* Just display it as a regular type for now */
45b55407b6SBarry Smith   TV_format_never   /* Don't know about this type, and please don't ask again */
46b55407b6SBarry Smith };
47b55407b6SBarry Smith 
48b55407b6SBarry Smith #define TV_ascii_string_type "$string"
49b55407b6SBarry Smith #define TV_int_type          "$int"
50b55407b6SBarry Smith 
51fa91756fSBarry Smith PETSC_EXTERN int TV_add_row(const char *, const char *, const void *);
52b55407b6SBarry Smith 
53b55407b6SBarry Smith /*
54b55407b6SBarry Smith        0: Success
55b55407b6SBarry Smith    EPERM: Called with no active callback to TV_display_type
56b55407b6SBarry Smith   EINVAL: field_name or type_name has illegal characters
57b55407b6SBarry Smith   ENOMEM: No more room left for display data
58b55407b6SBarry Smith */
59b55407b6SBarry Smith 
60519f805aSKarl Rupp #if defined(__cplusplus)
61b55407b6SBarry Smith }
62b55407b6SBarry Smith #endif
63b55407b6SBarry Smith 
64b55407b6SBarry Smith #endif
65