Difference between revisions of "MGED CMD db glob"

From BRL-CAD
(New page: Category:MGED =dbbinary= __TOC__ ==Syntax== :dbbinary [-o|-i pattern type] dest source ==Argument(s)== : '''-o|-i''' :: -i for input -o for output : '''pattern''' :: currently, on...)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:MGED]]
+
[[Category:MGED|Glob]]
  
=dbbinary=
+
=db_glob=
 
__TOC__
 
__TOC__
  
 
==Syntax==
 
==Syntax==
:dbbinary [-o|-i pattern type] dest source
+
:db_glob cmd_string
  
  
 
==Argument(s)==
 
==Argument(s)==
: '''-o|-i'''
+
: '''cmd_string'''
:: -i for input -o for output
+
:: Command to be globbed.
 
 
: '''pattern'''
 
:: currently, only 'u' is supported
 
 
 
: '''type'''
 
:: data format
 
 
 
: '''dest'''
 
:: destination object or file
 
 
 
: '''source'''
 
:: source file or object
 
  
  
Line 30: Line 18:
  
 
==Description==
 
==Description==
The "dbbinary" command is used to create or retrieve binary opaque objects. One of -i or -o must be specified. The -o option "outputs" or extracts a binary object from the database object source to a file called dest. The -i option "inputs" or imports a file called source into a binary object called dest in the database. There are two additional arguments that must be specified with the -i option: pattern and type. Currently, only uniform binary objects (arrays of values) are supported. As a result, the pattern is always u for "uniform" pattern. The type can be one of the following: f -> float d -> double c -> char (8 bit) s -> short (16 bit) i -> int (32 bit) l -> long (64 bit) C -> unsigned char (8 bit) S -> unsigned short (16 bit) I -> unsigned int (32 bit) L -> unsigned long (64 bit)
+
Globs cmd_string against the [[MGED]] database resulting in an expanded command string.
 
 
  
 
==Example(s)==
 
==Example(s)==
: '''mged>''' dbbinary -i -u c cmds /usr/brlcad/html/manuals/mged/mged_cmds
+
: '''mged>''' db_glob "l r23\[0-9\]"
:: Create an opaque uniform binary object of characters with the name cmds that contains the contents of the file /usr/brlcad/html/manuals/mged/mged_cmds.
+
:: l r230 r231 r232 r233 r234 r235 r236 r237 r238 r239
 
+
>> Returns a command string to list objects r230 through r239.
: '''mged>''' dbbinary -o /home/jim/cmds cmds
 
:: the contents of the binary object named cmds into the file named /home/jim/cmds
 
  
  
Line 47: Line 32:
 
----
 
----
  
Page Generated by David Loman on: 10/11/2007 at: 12:22:42 PM
+
Page Generated by David Loman on: 10/11/2007 at: 12:22:16 PM

Latest revision as of 07:35, 23 November 2017


db_glob[edit]

Syntax[edit]

db_glob cmd_string


Argument(s)[edit]

cmd_string
Command to be globbed.


Return Value(s)[edit]

No Return Values for this command.


Description[edit]

Globs cmd_string against the MGED database resulting in an expanded command string.

Example(s)[edit]

mged> db_glob "l r23\[0-9\]"
l r230 r231 r232 r233 r234 r235 r236 r237 r238 r239

>> Returns a command string to list objects r230 through r239.


See Also[edit]

No related commands.



Page Generated by David Loman on: 10/11/2007 at: 12:22:16 PM