arq_restore/plist/BooleanNode.m
Stefan Reitshamer cbe20c007e Merged in many changes from Arq mainline development.
(Sorry for the lame commit comment).
2010-08-19 13:25:23 -04:00

37 lines
590 B
Objective-C

//
// BooleanNode.m
// Backup
//
// Created by Stefan Reitshamer on 4/13/09.
// Copyright 2009 PhotoMinds LLC. All rights reserved.
//
#import "PListNodeType.h"
#import "BooleanNode.h"
@implementation BooleanNode
- (id)initWithBoolean:(BOOL)b {
if (self = [super init]) {
value = b;
}
return self;
}
- (BOOL)booleanValue {
return value;
}
#pragma mark PListNode protocol
- (int)type {
return PLN_BOOLEAN;
}
#pragma mark NSObject protocol
- (NSString *)description {
return [NSString stringWithFormat:@"<BooleanNode 0x%x %@>", self, (value ? @"YES" : @"NO")];
}
@end