Class: CP2TableSet
- Inherits:
-
Base
- Object
- Base
- CP2TableSet
- Includes:
- WIN32OLE::VARIANT
- Defined in:
- lib/ole20110223-013209.rb
Overview
P2TableSet Class
Constant Summary collapse
- CLSID =
P2ClientGate_P2TableSet_1
'{C52E4892-894B-4C03-841F-97E893F7BCAE}'
- PROGID =
'P2ClientGate.P2TableSet.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
-
#lastargs ⇒ Object
readonly
Returns the value of attribute lastargs.
-
#ole ⇒ Object
readonly
Returns the value of attribute ole.
Instance Method Summary collapse
-
#AddTable(table_name, fieldl_list, rev) ⇒ Object
method VOID AddTable BSTR table_name [IN] BSTR fieldl_list [IN] UI8 rev [IN].
- #clsid ⇒ Object
-
#Count ⇒ Object
property I4 Count.
-
#DeleteTable(table_name) ⇒ Object
method VOID DeleteTable BSTR table_name [IN].
-
#FieldList ⇒ Object
property BSTR FieldList BSTR table_name [IN].
-
#FieldTypes ⇒ Object
property BSTR FieldTypes BSTR table_name [IN].
-
#GetScheme(p_val) ⇒ Object
HRESULT GetScheme OLE_HANDLE p_val [OUT].
-
#InitFromDB(connect_string, sign_file) ⇒ Object
method VOID InitFromDB BSTR connect_string [IN] BSTR sign_file [IN].
-
#InitFromIni(struct_file, sign_file) ⇒ Object
method VOID InitFromIni BSTR struct_file [IN] BSTR sign_file [IN].
-
#InitFromIni2(ini_file_name, scheme_name) ⇒ Object
method VOID InitFromIni2 BSTR ini_file_name [IN] BSTR scheme_name [IN].
-
#initialize(opts = {}) ⇒ CP2TableSet
constructor
A new instance of CP2TableSet.
- #keep_lastargs(return_value) ⇒ Object
-
#LifeNum ⇒ Object
property I4 LifeNum.
-
#LifeNum=(val) ⇒ Object
property VOID LifeNum.
- #method_missing(cmd, *args) ⇒ Object
- #progid ⇒ Object
-
#rev ⇒ Object
I8 rev: property Rev BSTR table_name [IN].
-
#SetLifeNumToIni(ini_file_name) ⇒ Object
method VOID SetLifeNumToIni BSTR ini_file_name [IN].
Constructor Details
#initialize(opts = {}) ⇒ CP2TableSet
Returns a new instance of CP2TableSet.
642 643 644 |
# File 'lib/ole20110223-013209.rb', line 642 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
646 647 648 |
# File 'lib/ole20110223-013209.rb', line 646 def method_missing(cmd, *args) @ole.method_missing(cmd, *args) end |
Instance Attribute Details
#lastargs ⇒ Object (readonly)
Returns the value of attribute lastargs.
639 640 641 |
# File 'lib/ole20110223-013209.rb', line 639 def lastargs @lastargs end |
#ole ⇒ Object (readonly)
Returns the value of attribute ole.
640 641 642 |
# File 'lib/ole20110223-013209.rb', line 640 def ole @ole end |
Instance Method Details
#AddTable(table_name, fieldl_list, rev) ⇒ Object
method VOID AddTable
BSTR table_name [IN]
BSTR fieldl_list [IN]
UI8 rev [IN]
714 715 716 |
# File 'lib/ole20110223-013209.rb', line 714 def AddTable(table_name, fieldl_list, rev) @ole._invoke(3, [table_name, fieldl_list, rev], [VT_BSTR, VT_BSTR, VT_UI8]) end |
#clsid ⇒ Object
655 656 657 |
# File 'lib/ole20110223-013209.rb', line 655 def clsid CLSID end |
#Count ⇒ Object
property I4 Count
664 665 666 |
# File 'lib/ole20110223-013209.rb', line 664 def Count() @ole._getproperty(7, [], []) end |
#DeleteTable(table_name) ⇒ Object
method VOID DeleteTable
BSTR table_name [IN]
720 721 722 |
# File 'lib/ole20110223-013209.rb', line 720 def DeleteTable(table_name) @ole._invoke(6, [table_name], [VT_BSTR]) end |
#FieldList ⇒ Object
property BSTR FieldList
BSTR table_name [IN]
680 681 682 |
# File 'lib/ole20110223-013209.rb', line 680 def FieldList @_FieldList ||= OLEProperty.new(@ole, 4, [VT_BSTR], [VT_BSTR, VT_BSTR]) end |
#FieldTypes ⇒ Object
property BSTR FieldTypes
BSTR table_name [IN]
692 693 694 |
# File 'lib/ole20110223-013209.rb', line 692 def FieldTypes @_FieldTypes ||= OLEProperty.new(@ole, 9, [VT_BSTR], [VT_BSTR, VT_BSTR]) end |
#GetScheme(p_val) ⇒ Object
HRESULT GetScheme
OLE_HANDLE p_val [OUT]
739 740 741 |
# File 'lib/ole20110223-013209.rb', line 739 def GetScheme(p_val) keep_lastargs @ole._invoke(1610678272, [p_val], [VT_BYREF|VT_BYREF|VT_DISPATCH]) end |
#InitFromDB(connect_string, sign_file) ⇒ Object
method VOID InitFromDB
BSTR connect_string [IN]
BSTR sign_file [IN]
706 707 708 |
# File 'lib/ole20110223-013209.rb', line 706 def InitFromDB(connect_string, sign_file) @ole._invoke(2, [connect_string, sign_file], [VT_BSTR, VT_BSTR]) end |
#InitFromIni(struct_file, sign_file) ⇒ Object
method VOID InitFromIni
BSTR struct_file [IN]
BSTR sign_file [IN]
699 700 701 |
# File 'lib/ole20110223-013209.rb', line 699 def InitFromIni(struct_file, sign_file) @ole._invoke(1, [struct_file, sign_file], [VT_BSTR, VT_BSTR]) end |
#InitFromIni2(ini_file_name, scheme_name) ⇒ Object
method VOID InitFromIni2
BSTR ini_file_name [IN]
BSTR scheme_name [IN]
727 728 729 |
# File 'lib/ole20110223-013209.rb', line 727 def InitFromIni2(ini_file_name, scheme_name) @ole._invoke(10, [ini_file_name, scheme_name], [VT_BSTR, VT_BSTR]) end |
#keep_lastargs(return_value) ⇒ Object
650 651 652 653 |
# File 'lib/ole20110223-013209.rb', line 650 def keep_lastargs(return_value) @lastargs = WIN32OLE::ARGV return_value end |
#LifeNum ⇒ Object
property I4 LifeNum
669 670 671 |
# File 'lib/ole20110223-013209.rb', line 669 def LifeNum() @ole._getproperty(11, [], []) end |
#LifeNum=(val) ⇒ Object
property VOID LifeNum
674 675 676 |
# File 'lib/ole20110223-013209.rb', line 674 def LifeNum=(val) @ole._setproperty(11, [val], [VT_I4]) end |
#progid ⇒ Object
659 660 661 |
# File 'lib/ole20110223-013209.rb', line 659 def progid PROGID end |
#rev ⇒ Object
I8 rev: property Rev
BSTR table_name [IN]
686 687 688 |
# File 'lib/ole20110223-013209.rb', line 686 def rev @_rev ||= OLEProperty.new(@ole, 5, [VT_BSTR], [VT_BSTR, VT_I8]) end |
#SetLifeNumToIni(ini_file_name) ⇒ Object
method VOID SetLifeNumToIni
BSTR ini_file_name [IN]
733 734 735 |
# File 'lib/ole20110223-013209.rb', line 733 def SetLifeNumToIni(ini_file_name) @ole._invoke(12, [ini_file_name], [VT_BSTR]) end |