MacroItem Class Reference

#include <MacroSpaceManager.hpp>

Public Member Functions

 MacroItem (const char *n, const char *, size_t l, size_t p)
 
void update (const char *, size_t l, size_t p)
 
 ~MacroItem ()
 

Public Attributes

MacroItemnext
 
const char * name
 
const char * imageBuffer
 
size_t imageSize
 
size_t searchPosition
 

Detailed Description

Definition at line 45 of file MacroSpaceManager.hpp.

Constructor & Destructor Documentation

◆ MacroItem()

MacroItem::MacroItem ( const char *  n,
const char *  data,
size_t  l,
size_t  p 
)

Create a macro item entry.

Parameters
nThe name of the macro.
dataThe image data for the macro.
lThe size of the image data.
pThe search position.

Definition at line 50 of file MacroSpaceManager.cpp.

References dupString(), imageBuffer, imageSize, name, next, and searchPosition.

◆ ~MacroItem()

MacroItem::~MacroItem ( )
inline

Definition at line 51 of file MacroSpaceManager.hpp.

References imageBuffer, name, and ServiceMessage::releaseResultMemory().

Member Function Documentation

◆ update()

void MacroItem::update ( const char *  data,
size_t  l,
size_t  p 
)

Update the image data for a macro item.

Parameters
dataThe new image data.
lThe length of the new data.
pThe position data.

Definition at line 66 of file MacroSpaceManager.cpp.

References imageBuffer, imageSize, ServiceMessage::releaseResultMemory(), and searchPosition.

Referenced by ServerMacroSpaceManager::addMacro().

Member Data Documentation

◆ imageBuffer

const char* MacroItem::imageBuffer

◆ imageSize

◆ name

◆ next

◆ searchPosition


The documentation for this class was generated from the following files: