Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

blockop.cc File Reference

#include <stdlib.h>
#include <string.h>
#include "blockop.h"
#include "cmds.h"
#include "htatom.h"
#include "htctrl.h"
#include "htendian.h"
#include "hteval.h"
#include "htexcept.h"
#include "hthist.h"
#include "htiobox.h"
#include "htkeyb.h"
#include "htstring.h"
#include "process.h"
#include "snprintf.h"
#include "evalx.h"

Go to the source code of this file.

Classes

struct  ht_blockop_dialog_data
class  ht_blockop_int_context
class  ht_blockop_str_context

Defines

#define BLOCKOP_STR_MAX_ITERATIONS   1024
#define BLOCKOP_INT_MAX_ITERATIONS   1024

Functions

Objectcreate_blockop_str_context (ht_streamfile *file, FILEOFS ofs, UINT len, UINT size, bool netendian, char *action)
bool blockop_str_process (Object *context, ht_text *progress_indicator)
Objectcreate_blockop_int_context (ht_streamfile *file, FILEOFS ofs, UINT len, UINT size, endianess endian, char *action)
bool blockop_int_process (Object *context, ht_text *progress_indicator)
bool format_string_to_offset_if_avail (ht_format_viewer *format, byte *string, int stringlen, const char *string_desc, FILEOFS *ofs)
void blockop_dialog (ht_format_viewer *format, FILEOFS pstart, FILEOFS pend)


Define Documentation

#define BLOCKOP_INT_MAX_ITERATIONS   1024
 

Definition at line 488 of file blockop.cc.

Referenced by blockop_int_process().

#define BLOCKOP_STR_MAX_ITERATIONS   1024
 

Definition at line 367 of file blockop.cc.

Referenced by blockop_str_process().


Function Documentation

void blockop_dialog ht_format_viewer format,
FILEOFS  pstart,
FILEOFS  pend
 

Definition at line 566 of file blockop.cc.

References ht_blockop_dialog_data::action, baseview, bin2str(), blockop_int_process(), blockop_str_process(), button_cancel, cmd_edit_mode_i, create_blockop_int_context(), create_blockop_str_context(), ht_view::databuf_get(), dialog_eval_help(), ht_blockop_dialog::done(), ht_blockop_dialog_data::end, errorbox, execute_process(), FAM_WRITE, file, FILEOFS, find_atom(), format_string_to_offset_if_avail(), ht_format_viewer::get_file(), HISTATOM_EVAL_EXPR, HISTATOM_GOTO, ht_blockop_dialog::init(), insert_history_entry(), little_endian, MIN, ht_blockop_dialog_data::mode, NULL, ht_dialog::run(), screen, ht_view::sendmsg(), genericdrawbuf::size, and ht_blockop_dialog_data::start.

Referenced by ht_uformat_viewer::handlemsg().

bool blockop_int_process Object context,
ht_text progress_indicator
 

Definition at line 489 of file blockop.cc.

References ht_blockop_int_context::action, BLOCKOP_INT_MAX_ITERATIONS, byte, create_foreign_int(), ht_blockop_int_context::endian, eval(), ht_blockop_int_context::expr_const, ht_blockop_int_context::file, get_eval_error(), ht_io_exception, ht_snprintf(), ht_blockop_int_context::i, ht_blockop_int_context::len, ht_blockop_int_context::o, ht_blockop_int_context::ofs, QWORD_GET_INT, scalar_context_int(), scalar_destroy(), ht_streamfile::seek(), ht_text::settext(), ht_blockop_int_context::size, UINT, ht_blockop_int_context::v, eval_int::value, and ht_stream::write().

Referenced by blockop_dialog().

bool blockop_str_process Object context,
ht_text progress_indicator
 

Definition at line 368 of file blockop.cc.

References ht_blockop_str_context::action, BLOCKOP_STR_MAX_ITERATIONS, eval(), ht_blockop_str_context::expr_const, ht_blockop_str_context::file, get_eval_error(), ht_io_exception, ht_snprintf(), ht_blockop_str_context::i, eval_str::len, ht_blockop_str_context::len, ht_blockop_str_context::o, ht_blockop_str_context::ofs, scalar_context_str(), scalar_destroy(), ht_streamfile::seek(), ht_text::settext(), string_destroy(), UINT, ht_blockop_str_context::v, eval_str::value, and ht_stream::write().

Referenced by blockop_dialog().

Object* create_blockop_int_context ht_streamfile file,
FILEOFS  ofs,
UINT  len,
UINT  size,
endianess  endian,
char *  action
 

Definition at line 451 of file blockop.cc.

References ht_blockop_int_context::action, ht_blockop_int_context::endian, eval(), ht_blockop_int_context::expr_const, file, ht_blockop_int_context::file, FILEOFS, get_eval_error(), ht_io_exception, ht_strdup(), ht_blockop_int_context::i, len, ht_blockop_int_context::len, ht_blockop_int_context::o, ht_blockop_int_context::ofs, QWORD_GET_INT, scalar_context_int(), scalar_destroy(), size, ht_blockop_int_context::size, UINT, ht_blockop_int_context::v, and eval_int::value.

Referenced by blockop_dialog().

Object* create_blockop_str_context ht_streamfile file,
FILEOFS  ofs,
UINT  len,
UINT  size,
bool  netendian,
char *  action
 

Definition at line 332 of file blockop.cc.

References ht_blockop_str_context::action, eval(), ht_blockop_str_context::expr_const, file, ht_blockop_str_context::file, FILEOFS, get_eval_error(), ht_io_exception, ht_blockop_str_context::i, len, ht_blockop_str_context::len, ht_blockop_str_context::netendian, ht_blockop_str_context::o, ht_blockop_str_context::ofs, scalar_context_str(), scalar_destroy(), size, ht_blockop_str_context::size, UINT, and ht_blockop_str_context::v.

Referenced by blockop_dialog().

bool format_string_to_offset_if_avail ht_format_viewer format,
byte *  string,
int  stringlen,
const char *  string_desc,
FILEOFS ofs
 

Definition at line 550 of file blockop.cc.

References errorbox, FILEOFS, string, and ht_format_viewer::string_to_offset().

Referenced by blockop_dialog().


Generated on Fri May 7 21:15:46 2004 by doxygen 1.3.5