![]() |
Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
00001 #ifndef PARSE_HPP
00002 #define PARSE_HPP
00003
00004 #include
00005 #include "moab/Interface.hpp"
00006
00007 // A structure containing the parsed CL tag specification.
00008 struct TagSpec
00009 {
00010 moab::Tag handle; // Tag handle
00011 void* value; // Tag value (malloc'd) or NULL if no value specified
00012 };
00013
00014 // Parse a tag specified in the form: tagname=value,
00015 // where the "=value" portion is optional. Returns 0 on
00016 // success.
00017 int parse_tag_spec( char* string, TagSpec& result, moab::Interface* iface );
00018
00019 // Parse a string specifying a new tag to create, and create it.
00020 int parse_tag_create( char* string, TagSpec& result, moab::Interface* iface );
00021
00022 // Print description of syntax accepted in the string passed to
00023 // parse_tag_spec.
00024 void tag_syntax( std::ostream& stream );
00025
00026 // Data type used to store bit tags
00027 typedef unsigned char bittype;
00028
00029 #endif