Changeset 5965 for trunk/glueforge/glueforge.in
- Timestamp:
- Jan 10, 2006, 4:39:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/glueforge/glueforge.in (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/glueforge.in
r5962 r5965 1 1 #!/usr/bin/env perl 2 2 3 # Copyright (C) 2005 Joshua Hoblitt3 # Copyright (C) 2005-2006 Joshua Hoblitt 4 4 # 5 # $Id: glueforge.in,v 1.4 1 2006-01-11 02:06:24jhoblitt Exp $5 # $Id: glueforge.in,v 1.42 2006-01-11 02:39:16 jhoblitt Exp $ 6 6 7 7 use strict; … … 297 297 =head1 NAME 298 298 299 @PACKAGE_NAME@ - auto-generate 'meta' database bindings299 @PACKAGE_NAME@ - auto-generate Pan-STARRS IPP 'meta' database bindings 300 300 301 301 =head1 SYNOPSIS … … 305 305 =head1 DESCRIPTION 306 306 307 This program generates a set of database table specific bindings in the ANSI C 308 language. The code generated is largely just wrapper functions around the 309 C<pslib> C<DB> API. A simple table description is read in and a directory 310 containing a complete, distributable software package is created. 307 This program generates a set of database table format specific bindings in the 308 ANSI C language. The code generated is largely just wrapper functions around 309 the C<pslib> C<psDB> API. Table information is read in from a configuration 310 file in the pslib C<MetadataConfig> format. A complete autotools configured 311 package that builds both static & shared libraries is generated. 311 312 312 313 =head2 Features … … 320 321 =item * Installs a pkgconfig C<.pc> data file. 321 322 322 =item * Includes a table specific autotest test suite.323 =item * Includes a table format specific autotest test suite. 323 324 324 325 =item * Builds both shared and static libraries by default. … … 338 339 =item * Functions to insert, select, and pop to/from FITS files. 339 340 340 =item * Functions to convert between row structs and C<psMetadata>s.341 =item * Functions to convert between row structs and pslib C<psMetadata>s. 341 342 342 343 =back … … 344 345 =head1 TABLE DESCRIPTION FORMAT 345 346 346 A simple config files specifies the name of the table, the name and types of 347 all columns, and can optional specify which column are to be used as indexes. 348 These C<Table Description> files are in the C<Configuration files> format as 349 described in C<PSDC-430-007>. 350 351 =head2 Example table description 347 There are two slightly different configuration file forms. A C<simple> format 348 for describing a single table and a C<complex> format for describing more then 349 one table and/or configuring specific details as to how the package is 350 generated. The syntax for both of these forms follows the C<Configuration 351 files> format as described in C<PSDC-430-007>. 352 353 =head2 Simple configuration 354 355 A simple config file specifies the name of the table, the name and types of all 356 columns, and can optionally specify which column(s) are to be used as indexes. 357 358 =head2 Example simple configuration 352 359 353 360 table STR foo … … 372 379 database bindings. 373 380 381 =head2 Complex configuration 382 383 A complex config file consists of a series of C<METADATA> blocks. One (and 384 only one) of these blocks I<must> be named C<glueforge>. This block 385 contains the global package configuration data. Only the keys C<pkg_name> and 386 C<pkg_namespace> are allowed in this block and they are both required. 387 388 All other C<METADATA> blocks describe a single table with the name of the 389 C<METATA> block being the tables name. Otherwise, the format of items 390 contained in a C<METADATA> block is the same as for the simple configuration. 391 392 Note that nested C<METADATA> blocks are not allowed. 393 394 =head2 Example complex configuration 395 396 glueforge METADATA 397 pkg_name STR foodb 398 pkg_namespace STR foo 399 END 400 401 foo METADATA 402 foo STR 60 # Primary Key 403 bar S32 0 404 baz F32 0.0 405 boing F64 0.0 406 zot BOOL t # Key 407 END 408 409 bar METADATA 410 zot BOOL t # Key 411 boing F64 0.0 412 baz F32 0.0 413 bar S32 0 414 foo STR 60 # Primary Key 415 END 416 374 417 =head1 OPTIONS 375 418 … … 394 437 =back 395 438 439 =head1 BUGS 440 441 The format of configuration files is not rigorously checked. Improperly 442 formatted files may not be caught and cause random (possibly silent) errors 443 and/or improperly code generation. 444 396 445 =head1 CREDITS 397 446 … … 408 457 =head1 COPYRIGHT 409 458 410 Copyright (C) 2005 Joshua Hoblitt. All rights reserved.459 Copyright (C) 2005-2006 Joshua Hoblitt. All rights reserved. 411 460 412 461 This program is free software; you can redistribute it and/or modify it under … … 428 477 =head1 SEE ALSO 429 478 430 L<PS:IPP::Metadata::Config>479 C<pslib>, C<PSDC-430-007>. L<PS:IPP::Metadata::Config> 431 480 432 481 =cut
Note:
See TracChangeset
for help on using the changeset viewer.
