//
//  MCCreationContext.h
//  MCFoundation
//
//  Created by Michael Clark on 30/03/05.
//  Copyright 2005 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MCPObjectContext;
@protocol MCPUserProtocol;


@interface MCCreationContext : NSObject {
	MCPObjectContext*           _objectContext;
	id <MCPUserProtocol>        _currentUser;
}

- (id)initWithObjectContext: (MCPObjectContext*)context currentUser:(id <MCPUserProtocol>)aUser;


// Auto adds to the object context
- (id)createObjectForEntityNamed: (NSString*)aName;
- (id)createObjectForEntityNamed: (NSString*)aName addToObjectContext: (BOOL)flag;



#pragma mark Accessors
- (MCPObjectContext *)objectContext;
- (void)setObjectContext:(MCPObjectContext *)anObjectContext;

- (id <MCPUserProtocol>)currentUser;
- (void)setCurrentUser:(id <MCPUserProtocol>)aCurrentUser;

@end
