Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfCMeshLogger.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of Tissue Forge.
3 * Copyright (c) 2022-2024 T.J. Sego and Tien Comlekoglu
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
24
25#ifndef _WRAPS_C_VERTEX_SOLVER_TFCMESHLOGGER_H_
26#define _WRAPS_C_VERTEX_SOLVER_TFCMESHLOGGER_H_
27
28#include <tf_port_c.h>
29
30#include <tfCLogger.h>
31
32// Handles
33
34
40 unsigned int None;
41 unsigned int Create;
42 unsigned int Destroy;
43 unsigned int Operation;
44};
45
46
48// MeshLogEventType //
50
51
58
59
61// Module functions //
63
64
68CAPI_FUNC(HRESULT) tfVertexSolverMeshLogger_clear();
69
81 unsigned int type,
82 int *ids,
83 unsigned int numIds,
84 unsigned int *typeLabels,
85 unsigned int numTypeLabels,
86 const char *name
87);
88
94CAPI_FUNC(HRESULT) tfVertexSolverMeshLogger_getNumEvents(unsigned int *numEvents);
95
109 unsigned int idx,
110 unsigned int *type,
111 int **ids,
112 unsigned int *numIds,
113 unsigned int **typeLabels,
114 unsigned int *numTypeLabels,
115 char **name,
116 unsigned int *numChars
117);
118
124CAPI_FUNC(HRESULT) tfVertexSolverMeshLogger_getForwardLogging(bool *forward);
125
132CAPI_FUNC(HRESULT) tfVertexSolverMeshLogger_setForwardLogging(bool forward);
133
139CAPI_FUNC(HRESULT) tfVertexSolverMeshLogger_getLogLevel(unsigned int *level);
140
146CAPI_FUNC(HRESULT) tfVertexSolverMeshLogger_setLogLevel(unsigned int level);
147
148
149#endif // _WRAPS_C_VERTEX_SOLVER_TFCMESHLOGGER_H_
Handle to a models::vertex::MeshLogEventType instance.
Definition tfCMeshLogger.h:39
HRESULT tfVertexSolverMeshLogger_log(unsigned int type, int *ids, unsigned int numIds, unsigned int *typeLabels, unsigned int numTypeLabels, const char *name)
Add a log event to the log.
HRESULT tfVertexSolverMeshLogger_setForwardLogging(bool forward)
Set whether to foward log events to the main Tissue Forge logger.
HRESULT tfVertexSolverMeshLogger_getForwardLogging(bool *forward)
Get whether the logger is fowarding log events to the main Tissue Forge logger.
HRESULT tfVertexSolverMeshLogEventType_init(struct tfVertexSolverMeshLogEventTypeHandle *handle)
Initialize an instance.
HRESULT tfVertexSolverMeshLogger_getNumEvents(unsigned int *numEvents)
Get the number of log events.
HRESULT tfVertexSolverMeshLogger_getLogLevel(unsigned int *level)
Get the current log level.
HRESULT tfVertexSolverMeshLogger_clear()
Clear the log.
HRESULT tfVertexSolverMeshLogger_getEvent(unsigned int idx, unsigned int *type, int **ids, unsigned int *numIds, unsigned int **typeLabels, unsigned int *numTypeLabels, char **name, unsigned int *numChars)
Get a log event.
HRESULT tfVertexSolverMeshLogger_setLogLevel(unsigned int level)
Set the current log level.