00001 00002 /* --------------------------------------------------------------------------- 00003 00004 00005 This file is part of the ``node.printers'' package of NuSMV version 2. 00006 Copyright (C) 2006 by FBK-irst. 00007 00008 NuSMV version 2 is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 NuSMV version 2 is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00021 00022 For more information on NuSMV see <http://nusmv.fbk.eu> 00023 or email to <nusmv-users@fbk.eu>. 00024 Please report bugs to <nusmv-users@fbk.eu>. 00025 00026 To contact the NuSMV development board, email to <nusmv@fbk.eu>. 00027 00028 -----------------------------------------------------------------------------*/ 00029 00040 #ifndef __NUSMV_CORE_NODE_PRINTERS_PRINTER_BASE_PRIVATE_H__ 00041 #define __NUSMV_CORE_NODE_PRINTERS_PRINTER_BASE_PRIVATE_H__ 00042 00043 00044 #include "nusmv/core/node/printers/PrinterBase.h" 00045 #include "nusmv/core/node/NodeWalker_private.h" 00046 00047 #include "nusmv/core/utils/utils.h" 00048 00049 00059 typedef struct PrinterBase_TAG 00060 { 00061 /* this MUST stay on the top */ 00062 INHERITS_FROM(NodeWalker); 00063 00064 /* -------------------------------------------------- */ 00065 /* Private members */ 00066 /* -------------------------------------------------- */ 00067 00068 /* -------------------------------------------------- */ 00069 /* Virtual methods */ 00070 /* -------------------------------------------------- */ 00071 int (*print_node)(PrinterBase_ptr self, node_ptr n, int priority); 00072 00073 } PrinterBase; 00074 00075 00076 00077 /* ---------------------------------------------------------------------- */ 00078 /* Private methods to be used by derivated and friend classes only */ 00079 /* ---------------------------------------------------------------------- */ 00080 00095 PrinterBase_ptr 00096 PrinterBase_create(const NuSMVEnv_ptr env, const char* name, int low, 00097 size_t num); 00098 00107 void 00108 printer_base_init(PrinterBase_ptr self, const NuSMVEnv_ptr env, 00109 const char* name, int low, size_t num, 00110 boolean can_handle_null); 00111 00120 void printer_base_deinit(PrinterBase_ptr self); 00121 00129 int 00130 printer_base_throw_print_node(PrinterBase_ptr self, 00131 node_ptr n, int priority); 00132 00140 int 00141 printer_base_print_string(PrinterBase_ptr self, const char* str); 00142 00143 00144 #endif /* __NUSMV_CORE_NODE_PRINTERS_PRINTER_BASE_PRIVATE_H__ */