Back to index

im-sdk  12.3.91
Public Types | Public Member Functions | Protected Member Functions | Private Attributes
IMObject Class Reference

#include <IMBasicObject.hh>

Inheritance diagram for IMObject:
Inheritance graph
[legend]

List of all members.

Public Types

enum  OBJTYPE {
  UNKNOWN, OPERATION = 1, NUMBER_VARIABLE = 2, BOOL_VARIABLE = 3,
  CHAR_VARIABLE = 4, MTEXT_VARIABLE = 5, EVENT_VARIABLE = 6, NUMBER_PROPERTY = 0x12,
  BOOL_PROPERTY = 0x13, CHAR_PROPERTY = 0x14, MTEXT_PROPERTY = 0x15, EVENT_PROPERTY = 0x16,
  DOWNLOADABLE_OBJ_MASK = 0x80, EIMIL_CONFIG = 0x81, IMDESCRIPTOR = 0x82, BINARY_GUI = 0x83,
  BINARY_LWE = 0x84, JAVA_GUI = 0x85, JAVA_LWE = 0x86, SCRIPT_GUI = 0x87,
  SCRIPT_LWE = 0x88
}
enum  OBJCATEGORY {
  UNKNOWN_OBJECT = -1, GUI_OBJECT = 0, LWE_OBJECT = 1, SYNTAX_RULE_OBJECT = 2,
  IM_MANAGER_RULE_OBJECT = 3, PRELOADING_LWE_OBJECT = 4
}

Public Member Functions

CARD16BIT get_attribid () const
CARD32BIT get_fullid () const
bool downloadablep () const
enum OBJTYPE get_type () const
enum OBJCATEGORY get_category () const

Protected Member Functions

 IMObject (enum OBJTYPE type, bool downloadble)
virtual ~IMObject ()

Private Attributes

CARD32BIT id

Detailed Description

Definition at line 132 of file IMBasicObject.hh.


Member Enumeration Documentation

Enumerator:
UNKNOWN_OBJECT 
GUI_OBJECT 
LWE_OBJECT 
SYNTAX_RULE_OBJECT 
IM_MANAGER_RULE_OBJECT 
PRELOADING_LWE_OBJECT 

Definition at line 162 of file IMBasicObject.hh.

Enumerator:
UNKNOWN 
OPERATION 
NUMBER_VARIABLE 
BOOL_VARIABLE 
CHAR_VARIABLE 
MTEXT_VARIABLE 
EVENT_VARIABLE 
NUMBER_PROPERTY 
BOOL_PROPERTY 
CHAR_PROPERTY 
MTEXT_PROPERTY 
EVENT_PROPERTY 
DOWNLOADABLE_OBJ_MASK 
EIMIL_CONFIG 
IMDESCRIPTOR 
BINARY_GUI 
BINARY_LWE 
JAVA_GUI 
JAVA_LWE 
SCRIPT_GUI 
SCRIPT_LWE 

Definition at line 135 of file IMBasicObject.hh.


Constructor & Destructor Documentation

IMObject::IMObject ( enum OBJTYPE  type,
bool  downloadble 
) [abstract, protected]

Definition at line 48 of file IMBasicObject.cpp.

    : type(x_type), downloadable(x_downloadable)
{
    IMObjectMgr::get_instance()->add(this, id);
}

Here is the call graph for this function:

virtual IMObject::~IMObject ( ) [inline, protected, virtual]

Definition at line 177 of file IMBasicObject.hh.

{};

Member Function Documentation

bool IMObject::downloadablep ( ) const [inline]

Definition at line 186 of file IMBasicObject.hh.

    { return downloadable; }

Here is the caller graph for this function:

CARD16BIT IMObject::get_attribid ( ) const [inline]

Definition at line 179 of file IMBasicObject.hh.

    {
       if (!downloadablep()) return 0;
       return ((id & ((1 << 15) - 1)) | (1 << 15));
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 14 of file IMBasicObject.cpp.

{
    enum OBJTYPE retval;

    retval = get_type();
    if (retval == EIMIL_CONFIG) {
       return SYNTAX_RULE_OBJECT;
    } else if (retval == JAVA_GUI ||
              retval == BINARY_GUI ||
              retval == SCRIPT_GUI) {
       return GUI_OBJECT;
    } else if (retval == BINARY_LWE ||
              retval == JAVA_LWE ||
              retval == SCRIPT_LWE) {
       return LWE_OBJECT;
    } else if (retval == UNKNOWN ||
              retval == IMDESCRIPTOR ||
              retval == OPERATION ||
              retval == NUMBER_VARIABLE ||
              retval == BOOL_VARIABLE ||
              retval == CHAR_VARIABLE ||
              retval == MTEXT_VARIABLE ||
              retval == EVENT_VARIABLE ||
              retval == NUMBER_PROPERTY ||
              retval == BOOL_PROPERTY ||
              retval == CHAR_PROPERTY ||
              retval == MTEXT_PROPERTY ||
              retval == EVENT_PROPERTY) {
       return UNKNOWN_OBJECT;
    } else {
       ERROR_INTERNAL("Invalid object type.");
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

CARD32BIT IMObject::get_fullid ( ) const [inline]

Definition at line 184 of file IMBasicObject.hh.

    { return id; }
enum OBJTYPE IMObject::get_type ( ) const [inline]

Definition at line 188 of file IMBasicObject.hh.

    { return type; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 171 of file IMBasicObject.hh.


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