Class: CP2BLMessageFactory

Inherits:
Base
  • Object
show all
Includes:
WIN32OLE::VARIANT
Defined in:
lib/ole20110223-013209.rb

Overview

P2BLMessageFactory Class

Constant Summary collapse

CLSID =

P2ClientGate_P2BLMessageFactory_1

'{501786DA-CA02-45C1-B815-1C58C383265D}'
PROGID =
'P2ClientGate.P2BLMessageFactory.1'

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ CP2BLMessageFactory

Returns a new instance of CP2BLMessageFactory.



568
569
570
# File 'lib/ole20110223-013209.rb', line 568

def initialize opts = {}
  super PROGID, opts
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(cmd, *args) ⇒ Object



572
573
574
# File 'lib/ole20110223-013209.rb', line 572

def method_missing(cmd, *args)
  @ole.method_missing(cmd, *args)
end

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs.



565
566
567
# File 'lib/ole20110223-013209.rb', line 565

def lastargs
  @lastargs
end

#oleObject (readonly)

Returns the value of attribute ole.



566
567
568
# File 'lib/ole20110223-013209.rb', line 566

def ole
  @ole
end

Instance Method Details

#clsidObject



581
582
583
# File 'lib/ole20110223-013209.rb', line 581

def clsid
  CLSID
end

#CreateMessageById(msg_id) ⇒ Object

method IP2BLMessage CreateMessageById

UI4 msg_id [IN]


604
605
606
# File 'lib/ole20110223-013209.rb', line 604

def CreateMessageById(msg_id)
  @ole._invoke(3, [msg_id], [VT_UI4])
end

#CreateMessageByName(msg_name) ⇒ Object

method IP2BLMessage CreateMessageByName

BSTR msg_name [IN]


598
599
600
# File 'lib/ole20110223-013209.rb', line 598

def CreateMessageByName(msg_name)
  @ole._invoke(2, [msg_name], [VT_BSTR])
end

#Init(struct_file, sign_file) ⇒ Object

method VOID Init

BSTR struct_file [IN]
BSTR sign_file [IN]


592
593
594
# File 'lib/ole20110223-013209.rb', line 592

def Init(struct_file, sign_file)
  @ole._invoke(1, [struct_file, sign_file], [VT_BSTR, VT_BSTR])
end

#keep_lastargs(return_value) ⇒ Object



576
577
578
579
# File 'lib/ole20110223-013209.rb', line 576

def keep_lastargs(return_value)
  @lastargs = WIN32OLE::ARGV
  return_value
end

#progidObject



585
586
587
# File 'lib/ole20110223-013209.rb', line 585

def progid
  PROGID
end