VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
END
Attribute VB_Name = "cCBWStringValue"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
'Generated by IDL2VB v120. Copyright (c) 1999 Martin.Both
'Source File Name: ../include/CORBA.idl
'Target File Name: cCBWStringValue.cls

Option Explicit

Implements cOrbValueBase

'valuetype ::CORBA::WStringValue
Const sTypeId As String = "IDL:omg.org/CORBA/WStringValue:1.0"

Private lUniqueId As Long

Public Value As String

'Helper to get different COM interface
Friend Function thisOrbValueBase() As cOrbValueBase
    Set thisOrbValueBase = Me
End Function

'Helper
Private Function cOrbValueBase_UniqueId() As Long
    If lUniqueId = 0 Then
        lUniqueId = mVBOrb.VBOrb.getNextUniqueID()
    End If
    cOrbValueBase_UniqueId = lUniqueId
End Function

'Helper
Private Sub cOrbValueBase_initByRead(ByVal oIn As cOrbStream)
    On Error GoTo ErrHandler
    Value = oIn.readWstring()
    Exit Sub
ErrHandler:
    Call mVBOrb.VBOrb.ErrReraise(Err, "WStringValue.read")
End Sub

'Helper
Private Sub cOrbValueBase_writeMe(ByVal oOut As cOrbStream)
    On Error GoTo ErrHandler
    Call oOut.writeWstring(Value)
    Exit Sub
ErrHandler:
    Call mVBOrb.VBOrb.ErrReraise(Err, "WStringValue.write")
End Sub

Private Function cOrbValueBase_getIds(ByVal Item As Integer) As String
    cOrbValueBase_getIds = IIf(Item = 0, sTypeId, "")
End Function

Private Function cOrbValueBase_isCustom() As Boolean
    cOrbValueBase_isCustom = False
End Function
