//
//  XTTagContainerStack.h
//  XTads
//
//  Created by Rune Berg on 18/05/2018.
//  Copyright © 2018 Rune Berg. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "XTHtmlTagContainer.h"


@interface XTTagContainerStack : NSObject

@property (readonly) NSUInteger depth;
@property (readonly) XTHtmlTagContainer *top;
@property (readonly) XTHtmlTagContainer *bottom;

- (void)reset;

- (void)resetForNextCommand;

- (void)push:(XTHtmlTagContainer *)tag;

- (BOOL)canPop;

- (XTHtmlTagContainer *)pop;

- (void)popUntil:(XTHtmlTagContainer *)tagContainer;

@end
