Date: 2013-07-02T14:39:30+00:00

Actual source code: tv_data_display.h
petsc-3.4.2 2013-07-02

      1: /*
      2:  * $Header: /home/tv/src/debugger/src/datadisp/tv_data_display.h,v 1.3 2010-04-21 15:32:50 tringali Exp $
      3:  * $Locker:  $

      5:    Copyright (c) 2010, Rogue Wave Software, Inc.

      7:    Permission is hereby granted, free of charge, to any person obtaining a copy
      8:    of this software and associated documentation files (the "Software"), to deal
      9:    in the Software without restriction, including without limitation the rights
     10:    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     11:    copies of the Software, and to permit persons to whom the Software is
     12:    furnished to do so, subject to the following conditions:

     14:    The above copyright notice and this permission notice shall be included in
     15:    all copies or substantial portions of the Software.

     17:    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     18:    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     19:    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     20:    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     21:    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     22:    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     23:    THE SOFTWARE.

     25:  * Update log
     26:  *
     27:  * Sep 25 2009 SJT: Add idempotence header.
     28:  * Jul 1  2009 SJT: Created.
     29:  *
     30:  */

     32: #if !defined(TV_DATA_DISPLAY_H_INCLUDED)
     33: #define TV_DATA_DISPLAY_H_INCLUDED 1

     35: #if defined(__cplusplus)
     36: extern "C" {
     37: #endif

     39: enum TV_format_result
     40: {
     41:   TV_format_OK,             /* Type is known, and successfully converted */
     42:   TV_format_failed,         /* Type is known, but could not convert it */
     43:   TV_format_raw,            /* Just display it as a regular type for now */
     44:   TV_format_never           /* Don't know about this type, and please don't ask again */
     45: };

     47: #define TV_ascii_string_type "$string"
     48: #define TV_int_type "$int"

     50: extern int TV_add_row(const char *field_name,const char *type_name,const void *value);

     52: /*
     53:        0: Success
     54:    EPERM: Called with no active callback to TV_display_type
     55:   EINVAL: field_name or type_name has illegal characters
     56:   ENOMEM: No more room left for display data
     57: */

     59: #if defined(__cplusplus)
     60: }
     61: #endif

     63: #endif