GRE_VIEWABLE::MAINSCRIPT Class Reference

#include <gre/viewable.h>

Inheritance diagram for GRE_VIEWABLE::MAINSCRIPT:

Inheritance graph
[legend]
List of all members.

Public Types

enum  FUNC {
  FUNC_OnViewDataTipShowRequest, FUNC_OnViewDataTipShowText, FUNC_OnGroupDrawLabelsBegin, FUNC_OnGroupDrawLabelsEnd,
  FUNC_OnLayerDrawLabelsBegin, FUNC_OnLayerDrawLabelsEnd, FUNC_OnDrawLabel, FUNC_COUNT
}

Public Member Functions

int CallFunction (FUNC func, SMLARG *ArgIn, int NumArg, SMLARG *ArgRet=0)
int DlgEdit (MDLGPARENT dlgparent)
bool HasFunction (FUNC func) const
bool HasScript () const
ERRVALUE Initialize ()
 MAINSCRIPT (GRE_VIEWABLE *viewable)
void Terminate ()
virtual ~MAINSCRIPT ()

Private Member Functions

ERRVALUE CreateSMLContext (SMLCONTEXT *&smlcontext)
virtual ERRVALUE SerialRead (SERIALIZER &serializer)
virtual ERRVALUE SerialWrite (SERIALIZER &serializer, const char *tagname=0) const

Static Private Member Functions

void GRECB_CtrlScript (const GRE_CALLBACK_MSG *pMsg, void *vpCtrlScript)
const SERIALIZER::ITEMDEFSerialGetItemDef ()

Private Attributes

CONTEXT * m_pContext
MISTRING m_String
GRE_VIEWABLEm_viewable

Member Enumeration Documentation

enum GRE_VIEWABLE::MAINSCRIPT::FUNC
 

Externally callable functions.

Enumeration values:
FUNC_OnViewDataTipShowRequest  parm[GRE_VIEW,POINT2D,TOOLTIP] ret[-1=noshow,0=builtin,1=show]
FUNC_OnViewDataTipShowText  parm[GRE_VIEW,POINT2D,TOOLTIP] ret[-1=noshow,0=builtin,1=show]
FUNC_OnGroupDrawLabelsBegin  parm[GRE_GROUP,GRE_VIEW]
FUNC_OnGroupDrawLabelsEnd  parm[GRE_GROUP,GRE_VIEW]
FUNC_OnLayerDrawLabelsBegin  parm[GRE_LAYER,GRE_VIEW]
FUNC_OnLayerDrawLabelsEnd  parm[GRE_LAYER,GRE_VIEW]
FUNC_OnDrawLabel  parm[LABELPLACE, GRE_LAYERDC,COLOR,Num] ret[0=builtin,1=drawn by script]
FUNC_COUNT 

Definition at line 130 of file viewable.h.


Constructor & Destructor Documentation

GRE_VIEWABLE::MAINSCRIPT::MAINSCRIPT GRE_VIEWABLE viewable  ) 
 

virtual GRE_VIEWABLE::MAINSCRIPT::~MAINSCRIPT  )  [virtual]
 


Member Function Documentation

int GRE_VIEWABLE::MAINSCRIPT::CallFunction FUNC  func,
SMLARG ArgIn,
int  NumArg,
SMLARG ArgRet = 0
 

ERRVALUE GRE_VIEWABLE::MAINSCRIPT::CreateSMLContext SMLCONTEXT *&  smlcontext  )  [private]
 

int GRE_VIEWABLE::MAINSCRIPT::DlgEdit MDLGPARENT  dlgparent  ) 
 

void GRE_VIEWABLE::MAINSCRIPT::GRECB_CtrlScript const GRE_CALLBACK_MSG pMsg,
void *  vpCtrlScript
[static, private]
 

bool GRE_VIEWABLE::MAINSCRIPT::HasFunction FUNC  func  )  const
 

bool GRE_VIEWABLE::MAINSCRIPT::HasScript  )  const
 

ERRVALUE GRE_VIEWABLE::MAINSCRIPT::Initialize  ) 
 

const SERIALIZER::ITEMDEF* GRE_VIEWABLE::MAINSCRIPT::SerialGetItemDef  )  [static, private]
 

virtual ERRVALUE GRE_VIEWABLE::MAINSCRIPT::SerialRead SERIALIZER serializer  )  [private, virtual]
 

Read component from serialization.

This method must be called only after the tag name has been read and is responsible for determining how to deserialize the component elements. When beginning a deserialization, usually the SERIALIZER::Read(tagname,object) method should be used to match the desired tag name which was used in writing. A default implementation is not possible due to multiple inheritance resulting in a different "this" pointer being passed than the actual object, which causes the offset values in the ITEMDEF arrays to be wrong.

Implements SERIALIZABLE.

virtual ERRVALUE GRE_VIEWABLE::MAINSCRIPT::SerialWrite SERIALIZER serializer,
const char *  tagname = 0
const [private, virtual]
 

Write object to serialization.

This method must write the tag name provided, using SERIALIZER::PutBegin(). If the tagname is 0 (default) then it must determine the proper tag name to write. After writing the object this method must write the ending tag using SERIALIZER::PutEnd(). When inheriting this interface, the default value of 0 for the tag name must NOT be redefined. (See Meyers, Effective C++, item #38) A default implementation is not possible due to multiple inheritance resulting in a different "this" pointer being passed than the actual object, which causes the offset values in the ITEMDEF arrays to be wrong.

Implements SERIALIZABLE.

void GRE_VIEWABLE::MAINSCRIPT::Terminate  ) 
 


Member Data Documentation

CONTEXT* GRE_VIEWABLE::MAINSCRIPT::m_pContext [private]
 

Definition at line 157 of file viewable.h.

MISTRING GRE_VIEWABLE::MAINSCRIPT::m_String [private]
 

Definition at line 158 of file viewable.h.

GRE_VIEWABLE* GRE_VIEWABLE::MAINSCRIPT::m_viewable [private]
 

Definition at line 156 of file viewable.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:19:55 2004 for TNTsdk by  doxygen 1.3.8-20040913