Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
tv_data_display.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*
8 * $Header: /home/tv/src/debugger/src/datadisp/tv_data_display.h,v 1.5 2010/10/04 04:02:19 anb Exp $
9 * $Locker: $
10
11 Copyright (c) 2010, Rogue Wave Software, Inc.
12
13 Permission is hereby granted, free of charge, to any person obtaining a copy
14 of this software and associated documentation files (the "Software"), to deal
15 in the Software without restriction, including without limitation the rights
16 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17 copies of the Software, and to permit persons to whom the Software is
18 furnished to do so, subject to the following conditions:
19
20 The above copyright notice and this permission notice shall be included in
21 all copies or substantial portions of the Software.
22
23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29 THE SOFTWARE.
30
31 * Update log
32 *
33 * Sep 27 2010 ANB: reworked as part of totalview/12314
34 * Jun 17 2010 JVD: Added TV_elide_row.
35 * Sep 25 2009 SJT: Add idempotence header.
36 * Jul 1 2009 SJT: Created.
37 *
38 */
39
40#ifndef TV_DATA_DISPLAY_H_INCLUDED
41#define TV_DATA_DISPLAY_H_INCLUDED 1
42
43#define TV_TTF_DATA_DISPLAY_API_VERSION 1
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/* TV_TTF_display_type should return one of these values */
50enum TV_ttf_format_result
51 {
52 TV_ttf_format_ok, /* Type is known, and successfully converted */
53 TV_ttf_format_ok_elide, /* as TV_ttf_format_OK, but elide type */
54 TV_ttf_format_failed, /* Type is known, but could not convert it */
55 TV_ttf_format_raw, /* Just display it as a regular type for now */
56 TV_ttf_format_never /* Don't know about this type, and please don't ask again */
57 };
58typedef enum TV_ttf_format_result TV_ttf_format_result;
59
60/* TV_ttf_add_row returns one of these values */
61enum TV_ttf_error_codes
62 {
63 TV_ttf_ec_ok = 0, /* operation succeeded */
64 TV_ttf_ec_not_active,
65 TV_ttf_ec_invalid_characters,
66 TV_ttf_ec_buffer_exhausted
67 };
68typedef enum TV_ttf_error_codes TV_ttf_error_codes;
69
70#define TV_ttf_type_ascii_string "$string"
71#define TV_ttf_type_int "$int"
72#if 0
73#define TV_elide_row "" /* field_name to use when row elision is desired */
74#endif
75
76#define TTV_EXPORT __attribute__ ((visibility("default")))
77
78/* returns logical true (non-zero) if the TV_ttf_format_result fr represents
79 a format result that indicates success
80*/
81extern TTV_EXPORT int
82TV_ttf_is_format_result_ok ( TV_ttf_format_result fr );
83
84/*
85 TV_ttf_ec_ok: Success
86 TV_ttf_ec_no_active: Called with no active callback to
87 TV_ttf_display_type
88 TV_ttf_ec_invalid_characters: field_name or type_name has illegal characters
89 TV_ttf_ec_buffer_exhausted: No more room left for display data
90*/
91extern TTV_EXPORT int
92TV_ttf_add_row(const char *field_name,
93 const char *type_name,
94 const void *value);
95
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif