//
//  main.m
//  PrimerSample
//
//  Created by Jp LaFond on 3/19/12.
//  Copyright (c) 2012 Jp4Mobile. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "SC01AppDelegate.h"
#import "SC01Person.h"
#import "SC01Employer.h"

int main(int argc, char *argv[])
{
//    // Jp's person code
//    //      Using the standard initializer
//    SC01Person * applePerson = [[SC01Person alloc] initWithFirstName:@"Abe" LastName:@"Apple" HUID:11111];
//    //      Doing it by hand
//    SC01Person * bakerPerson = [SC01Person new];
//    bakerPerson.firstName    = @"Bob";
//    bakerPerson.lastName     = @"Baker";
//    bakerPerson.huidNumber   = 22222;
//    // Unfortunately, no way of printing it...
//    
//    // Here we'll see what happens, when we try to use our private variables/methods
////    bakerPerson.privateID    = 733;
////    [bakerPerson logData:bakerPerson];
//    // Print them both...
//    [bakerPerson printMe:applePerson];
//    [bakerPerson printMe:bakerPerson];
    
    // Allocate the employer
    SC01Employer * employer = [SC01Employer new];
    // Print it all out
    [employer printEmployees];
    [employer printProjects];
    // Populate it
    employer.companyName = @"Jp Co.";
    [employer addEmployees];
    [employer addProjects:@"Project Plaid" ProjectLead:[[SC01Person alloc] initWithFirstName:@"Paul" LastName:@"Plaid" HUID:112233]];
    [employer addProjects:@"Project Razzle" ProjectLead:[[SC01Person alloc] initWithFirstName:@"Ralph" LastName:@"Razzle" HUID:332211]];
    
    // Print it all out
    [employer printEmployees];
    [employer printProjects];
    
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([SC01AppDelegate class]));
    }
    
    
}
