BRL-CAD
op.h
Go to the documentation of this file.
1 /* O P . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file op.h
21  *
22  * Routines for detecting, using, and managing boolean operators.
23  *
24  */
25 
26 #ifndef RT_DB_H
27 #define RT_DB_H
28 
29 #include "./defines.h"
30 
32 
33 typedef enum {
35  DB_OP_UNION = 'u',
38 } db_op_t;
39 
40 
41 /**
42  * Get the next CSG boolean operator found in a given string.
43  *
44  * Skipping any whitespace, this routine returns the CSG boolean
45  * operation in canonical (single-byte enumeration) form. It will
46  * attempt to recognize operators in various unicode formats if the
47  * input string contains mixed encodings.
48  */
49 RT_EXPORT db_op_t
50 db_str2op(const char *str);
51 
53 
54 #endif /* RT_DB_H */
55 
56 /*
57  * Local Variables:
58  * tab-width: 8
59  * mode: C
60  * indent-tabs-mode: t
61  * c-file-style: "stroustrup"
62  * End:
63  * ex: shiftwidth=4 tabstop=8
64  */
db_op_t db_str2op(const char *str)
Definition: op.c:31
db_op_t
Definition: op.h:33
#define __BEGIN_DECLS
Definition: common.h:73
Definition: op.h:35
Definition: op.h:34
#define __END_DECLS
Definition: common.h:74