blob: 7e0e2ed1e70e6753e8836b86e0c68da1633cb13b [file] [log] [blame]
// -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.
#import <Foundation/Foundation.h>
// Importing these here saves us from importing them in the implementation of every load command.
#include <mach-o/loader.h>
#import "CDMachOFileDataCursor.h"
@class CDMachOFile;
@interface CDLoadCommand : NSObject
+ (id)loadCommandWithDataCursor:(CDMachOFileDataCursor *)cursor;
- (id)initWithDataCursor:(CDMachOFileDataCursor *)cursor;
- (NSString *)extraDescription;
@property (weak, readonly) CDMachOFile *machOFile;
@property (readonly) NSUInteger commandOffset;
@property (nonatomic, readonly) uint32_t cmd;
@property (nonatomic, readonly) uint32_t cmdsize;
@property (nonatomic, readonly) BOOL mustUnderstandToExecute;
@property (nonatomic, readonly) NSString *commandName;
- (void)appendToString:(NSMutableString *)resultString verbose:(BOOL)isVerbose;
- (void)machOFileDidReadLoadCommands:(CDMachOFile *)machOFile;
@end