Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XrmQPutStringResource − add a resource specification to a database using a quark resource name and string value. 

Synopsis

void XrmQPutStringResource(database, bindings, quarks, value)
     XrmDatabase *database;
     XrmBindingList bindings;
     XrmQuarkList quarks;
     char *value;

Arguments

databaseSpecifies a pointer to the resource database.  If database contains NULL, a new resource database is created and a pointer to it is returned in database.  If a database is created, it is created in the current locale. 

bindingsSpecifies a list of bindings for binding together the quarks argument. 

quarksSpecifies the complete or partial name or class list of the resource to be stored. 

valueSpecifies the value of the resource as a string. 

Description

XrmQPutStringResource() stores a resource specification into the specified database.  XrmQPutStringResource() is a cross between XrmQPutResource() and XrmPutStringResource().  Like XrmQPutResource(), it specifies the resource by quarks and bindings, two lists that together make a name/class list with loose and tight bindings.  Like XrmPutStringResource(), it specifies the value to be stored as a string, that value is converted into an XrmValue, and the default representation type String is used.  The value is stored in the database without modification.  XrmPutResource(), XrmQPutResource(), XrmPutStringResource(), XrmQPutStringResource() and XrmPutLineResource() all store data into a database.  See XrmQPutResource() for the most complete description of this process.  For more information, see Volume One, Chapter 11, Managing User Preferences. 

Structures

XrmDatabase is a pointer to an opaque data type.
typedef enum {
XrmBindTightly, XrmBindLoosely
} XrmBinding, *XrmBindingList;
typedef int XrmQuark, *XrmQuarkList;

See Also

XrmDestroyDatabase(), XrmGetFileDatabase(), XrmGetResource(), XrmGetStringDatabase(), XrmInitialize(), XrmMergeDatabases(), XrmParseCommand(), XrmPutFileDatabase(), XrmPutLineResource(), XrmPutResource(), XrmPutStringResource(), XrmQGetResource(), XrmQGetSearchList(), XrmQGetSearchResource(), XrmQPutResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuarkList(), XrmStringToQuark(), XrmUniqueQuark(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026