SMPOPER.CPP

In the example provider component, an example showing data type operation routines is in smpoper.cpp.

MarshallSampleDSSynIdToSampleDS
Marshaling example from native to ADS format, using next routine.
CopySampleDSSynIdToSampleDS
Calls routines indented below, one for each syntax.
CopySampleDSSynId1ToSampleDS1
Copies syntax 1 items (strings).
CopySampleDSSynId2ToSampleDS2
Copies syntax 2 items (integers).
UnMarshallSampleDSTOSampleDSSynId
Allocates and copies one or more objects of the same syntax type and value using the next routine.
CopySampleDSToSampleDSSynID
Calls routines indented below, one for each syntax.
CopySampleDS1ToSampleDSSynID1
Copies syntax 1 items (strings).
CopySampleDS2ToSampleDSSynID2
Copies syntax 2 items (integers).
SampleDSTypeCopyConstruct
Makes more than one appropriate copy of the given object, calling the next routine.
SampleDSTypeCopy
Makes a copy of the appropriate type of object, using the indented routines below, one for each syntax.
SampleDSTypeCopySampleDSSynId1
Copies a SampleDS_Type_1 object, which is the "string" syntax.
SampleDSTypeCopySampleDSSynId2
Copies a SampleDS_Type_2 object, which is the "Integer" syntax.
SampleDSTypeToVarTypeCopyConstruct
Converting from native to ADS format, using next routine.
SampleDSTypeToVarTypeCopy
Calls routines below, one for each syntax supported.
SampleDSTypeToVarTypeCopySampleDSSynId1
Copies an example provider component DNString to a VT_BSTR format.
SampleDSTypeToVarTypeCopySampleDSSynId2
Copies an example provider component Integer to a VT_I4 format.
VarTypeToSampleDSTypeCopyConstruct
Copies one or more objects calling the next routine.
VarTypeToSampleDSTypeCopy
Copies source objects to destination objects according to Example provider component syntax types. Calls the routines below, one for each syntax.
VarTypeToSampleDSTypeCopySampleDSSynId1
Copies a VT_BSTR to an example provider component DNString format.
VarTypeToSampleDSTypeCopySampleDSSynId2
Copies a VT_I4 to an example provider component integer format.
SampleDSTypeFreeSampleDSObjects
Free memory for one or more objects calling the next routine.
SampleDSTypeClear
Free memory for an example object, calling indented routines below, one per syntax type.
SampleDSTypeFreeSampleDSSynId1
Free memory used for syntax 1 items (DNstrings).
SampleDSTypeFreeSampleDSSynId2
Free memory used for syntax 2 items (Integers).