|
/* Gamelon(tm) File I/O Library Sample Code C++ Language */ /* (C)1994 Menai Corporation(tm) Released for public use */
/* Example 5b. Modifying the annotations of an aggregate */ /* object. */
/* A programmer can modify the annotations or contents */ /* of an aggregate object. Modifying the annotations is */ /* very easy and can be performed without affecting any */ /* objects contained within the aggregate object. */
/* Beginning file layout: */ /* { } */ /* [2]{ }[3.14159] */ /* [5700304] */
#include <stdlib.h> #include "gfcursor.hpp"
int main(void) { int valid; CURSOR *c = new CURSOR("newfile"); c>eCursorQueryValid(&valid); if (!valid) exit(1); c>eCursorMoveIn(); c>eCursorMoveNext(); c>eAltModify(); c>eObjSetName("Populations"); c>eAltCommit(); delete c; return 0; }
/* Ending file layout: */ /* { } */ /* [2]{NA("Populations") }[3.14159] */ /* [5700304] */
/* Modifying annotations alone does not change the file */ /* layout. Note that the contents of the modified */ /* aggregate are still intact. */ |
||||||||||||||
| |
||||||||||||||
|
Home | Product | Consulting | Programming | Reviews | Company | Site Map | Guest Book |
||||||||||||||
|
Menai Corporation, 1010 El Camino Real, Suite 300, Menlo Park, California 94025-4335 |
||||||||||||||
|
Copyright © 1996-98 Menai Corporation. All Rights Reserved. Menai, Gamelon and gamelon(stylized) are worldwide trademarks of Menai Corporation, registered in the United States of America, and the .[g] logo is a worldwide trademark of Menai Corporation. All other trademarks are owned by their respective owners. |
||||||||||||||