Annotation of Examples/EnterpriseObjects/SHLExamples/EnterpriseObject/Author.h, revision 1.1.1.1

1.1       root        1: /*--------------------------------------------------------------------------
                      2:  *
                      3:  *     You may freely copy, distribute, and reuse the code in this example.
                      4:  *     SHL Systemhouse disclaims any warranty of any kind, expressed or  
                      5:  *     implied, as to its fitness for any particular use.
                      6:  *
                      7:  *     Author
                      8:  *
                      9:  *     Inherits From:          NSObject
                     10:  *
                     11:  *     Conforms To:            None
                     12:  *
                     13:  *     Declared In:            Author.h
                     14:  *
                     15:  *     Class Description
                     16:  *
                     17:  *             Author is our enterprise object for the database entity
                     18:  *             authors in the Sybase pubs database (this is specified via
                     19:  *             EOModeler.app).
                     20:  *
                     21:  *             This class demonstrates how an enterprise object uses the
                     22:  *             EOKeyValueCoding protocol to transfer values to / from the 
                     23:  *             database (see that informal protocol doc for more info).
                     24:  *             Here's what happens to our ivars:
                     25:  *
                     26:  *             au_id           will be filled in automatically (ivar match)
                     27:  *             fullname        will use set / get accessors
                     28:  *             address         will use set / get accessors and call Address object
                     29:  *             
                     30:  *             
                     31:  *------------------------------------------------------------------------*/
                     32: #import <foundation/NSObject.h>
                     33: 
                     34: @class NSMString;
                     35: @class Address;
                     36: 
                     37: 
                     38: 
                     39: @interface Author : NSObject
                     40: {
                     41:        NSString        *au_id;
                     42:        NSString        *fullname;
                     43:        Address         *address;
                     44: }
                     45: 
                     46: /*--------------------------------------------------------------------------
                     47:  *     Accessors
                     48:  *------------------------------------------------------------------------*/
                     49: - (NSString *) fullname;
                     50: - (NSString *) address;
                     51: - (NSString *) city;
                     52: - (NSString *) state;
                     53: - (NSString *) zip;
                     54: 
                     55: - (void) setFullname: (NSString *)aName;
                     56: - (void) setAddress: (NSString *)anAddress;
                     57: - (void) setCity: (NSString *)aCity;
                     58: - (void) setState: (NSString *)aState;
                     59: - (void) setZip: (NSString *)aZip;
                     60: 
                     61: 
                     62: @end   
                     63:        

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.