Skip to content

Commit 6c5066a

Browse files
committed
Optimized conversion of basic Go data types and added conversion for inheritance relationships.
1 parent 0cce372 commit 6c5066a

File tree

63 files changed

+10478
-3002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+10478
-3002
lines changed

AsposeCellsCWrapper.h

Lines changed: 1932 additions & 1732 deletions
Large diffs are not rendered by default.

aspose_cells.go

Lines changed: 798 additions & 57 deletions
Large diffs are not rendered by default.

aspose_cells_charts.go

Lines changed: 1600 additions & 568 deletions
Large diffs are not rendered by default.

aspose_cells_charts_linux.go

Lines changed: 1600 additions & 568 deletions
Large diffs are not rendered by default.

aspose_cells_datamodels.go

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func (instance *DataModel) GetTables() (*DataModelTableCollection, error) {
7777
}
7878

7979

80+
8081
func DeleteDataModel(datamodel *DataModel){
8182
runtime.SetFinalizer(datamodel, nil)
8283
C.Delete_DataModel(datamodel.ptr)
@@ -163,6 +164,7 @@ func (instance *DataModelRelationship) GetPrimaryKeyColumn() (string, error)
163164
}
164165

165166

167+
166168
func DeleteDataModelRelationship(datamodelrelationship *DataModelRelationship){
167169
runtime.SetFinalizer(datamodelrelationship, nil)
168170
C.Delete_DataModelRelationship(datamodelrelationship.ptr)
@@ -224,6 +226,7 @@ func (instance *DataModelRelationshipCollection) GetCount() (int32, error) {
224226
}
225227

226228

229+
227230
func DeleteDataModelRelationshipCollection(datamodelrelationshipcollection *DataModelRelationshipCollection){
228231
runtime.SetFinalizer(datamodelrelationshipcollection, nil)
229232
C.Delete_DataModelRelationshipCollection(datamodelrelationshipcollection.ptr)
@@ -296,6 +299,7 @@ func (instance *DataModelTable) GetConnectionName() (string, error) {
296299
}
297300

298301

302+
299303
func DeleteDataModelTable(datamodeltable *DataModelTable){
300304
runtime.SetFinalizer(datamodeltable, nil)
301305
C.Delete_DataModelTable(datamodeltable.ptr)
@@ -329,9 +333,27 @@ func (instance *DataModelTableCollection) IsNull() (bool, error) {
329333
// index - int32
330334
// Returns:
331335
// DataModelTable
332-
func (instance *DataModelTableCollection) Get(index int32) (*DataModelTable, error) {
336+
func (instance *DataModelTableCollection) Get_Int(index int32) (*DataModelTable, error) {
333337

334-
CGoReturnPtr := C.DataModelTableCollection_Get( instance.ptr, C.int(index))
338+
CGoReturnPtr := C.DataModelTableCollection_Get_Integer( instance.ptr, C.int(index))
339+
if CGoReturnPtr.error_no != 0 {
340+
err := errors.New(C.GoString(CGoReturnPtr.error_message))
341+
return nil, err
342+
}
343+
result := &DataModelTable{}
344+
result.ptr = CGoReturnPtr.return_value
345+
runtime.SetFinalizer(result, DeleteDataModelTable)
346+
347+
return result, nil
348+
}
349+
// Gets the data model table by the name.
350+
// Parameters:
351+
// name - string
352+
// Returns:
353+
// DataModelTable
354+
func (instance *DataModelTableCollection) Get_String(name string) (*DataModelTable, error) {
355+
356+
CGoReturnPtr := C.DataModelTableCollection_Get_String( instance.ptr, C.CString(name))
335357
if CGoReturnPtr.error_no != 0 {
336358
err := errors.New(C.GoString(CGoReturnPtr.error_message))
337359
return nil, err
@@ -357,6 +379,7 @@ func (instance *DataModelTableCollection) GetCount() (int32, error) {
357379
}
358380

359381

382+
360383
func DeleteDataModelTableCollection(datamodeltablecollection *DataModelTableCollection){
361384
runtime.SetFinalizer(datamodeltablecollection, nil)
362385
C.Delete_DataModelTableCollection(datamodeltablecollection.ptr)

aspose_cells_datamodels_linux.go

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func (instance *DataModel) GetTables() (*DataModelTableCollection, error) {
7777
}
7878

7979

80+
8081
func DeleteDataModel(datamodel *DataModel){
8182
runtime.SetFinalizer(datamodel, nil)
8283
C.Delete_DataModel(datamodel.ptr)
@@ -163,6 +164,7 @@ func (instance *DataModelRelationship) GetPrimaryKeyColumn() (string, error)
163164
}
164165

165166

167+
166168
func DeleteDataModelRelationship(datamodelrelationship *DataModelRelationship){
167169
runtime.SetFinalizer(datamodelrelationship, nil)
168170
C.Delete_DataModelRelationship(datamodelrelationship.ptr)
@@ -224,6 +226,7 @@ func (instance *DataModelRelationshipCollection) GetCount() (int32, error) {
224226
}
225227

226228

229+
227230
func DeleteDataModelRelationshipCollection(datamodelrelationshipcollection *DataModelRelationshipCollection){
228231
runtime.SetFinalizer(datamodelrelationshipcollection, nil)
229232
C.Delete_DataModelRelationshipCollection(datamodelrelationshipcollection.ptr)
@@ -296,6 +299,7 @@ func (instance *DataModelTable) GetConnectionName() (string, error) {
296299
}
297300

298301

302+
299303
func DeleteDataModelTable(datamodeltable *DataModelTable){
300304
runtime.SetFinalizer(datamodeltable, nil)
301305
C.Delete_DataModelTable(datamodeltable.ptr)
@@ -329,9 +333,27 @@ func (instance *DataModelTableCollection) IsNull() (bool, error) {
329333
// index - int32
330334
// Returns:
331335
// DataModelTable
332-
func (instance *DataModelTableCollection) Get(index int32) (*DataModelTable, error) {
336+
func (instance *DataModelTableCollection) Get_Int(index int32) (*DataModelTable, error) {
333337

334-
CGoReturnPtr := C.DataModelTableCollection_Get( instance.ptr, C.int(index))
338+
CGoReturnPtr := C.DataModelTableCollection_Get_Integer( instance.ptr, C.int(index))
339+
if CGoReturnPtr.error_no != 0 {
340+
err := errors.New(C.GoString(CGoReturnPtr.error_message))
341+
return nil, err
342+
}
343+
result := &DataModelTable{}
344+
result.ptr = CGoReturnPtr.return_value
345+
runtime.SetFinalizer(result, DeleteDataModelTable)
346+
347+
return result, nil
348+
}
349+
// Gets the data model table by the name.
350+
// Parameters:
351+
// name - string
352+
// Returns:
353+
// DataModelTable
354+
func (instance *DataModelTableCollection) Get_String(name string) (*DataModelTable, error) {
355+
356+
CGoReturnPtr := C.DataModelTableCollection_Get_String( instance.ptr, C.CString(name))
335357
if CGoReturnPtr.error_no != 0 {
336358
err := errors.New(C.GoString(CGoReturnPtr.error_message))
337359
return nil, err
@@ -357,6 +379,7 @@ func (instance *DataModelTableCollection) GetCount() (int32, error) {
357379
}
358380

359381

382+
360383
func DeleteDataModelTableCollection(datamodeltablecollection *DataModelTableCollection){
361384
runtime.SetFinalizer(datamodeltablecollection, nil)
362385
C.Delete_DataModelTableCollection(datamodeltablecollection.ptr)

aspose_cells_digitalsignatures.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ func (instance *DigitalSignature) SetXAdESType(value XAdESType) error {
350350
}
351351

352352

353+
353354
func DeleteDigitalSignature(digitalsignature *DigitalSignature){
354355
runtime.SetFinalizer(digitalsignature, nil)
355356
C.Delete_DigitalSignature(digitalsignature.ptr)
@@ -427,6 +428,7 @@ func (instance *DigitalSignatureCollection) GetEnumerator() (*DigitalSignatureE
427428
}
428429

429430

431+
430432
func DeleteDigitalSignatureCollection(digitalsignaturecollection *DigitalSignatureCollection){
431433
runtime.SetFinalizer(digitalsignaturecollection, nil)
432434
C.Delete_DigitalSignatureCollection(digitalsignaturecollection.ptr)

aspose_cells_digitalsignatures_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ func (instance *DigitalSignature) SetXAdESType(value XAdESType) error {
350350
}
351351

352352

353+
353354
func DeleteDigitalSignature(digitalsignature *DigitalSignature){
354355
runtime.SetFinalizer(digitalsignature, nil)
355356
C.Delete_DigitalSignature(digitalsignature.ptr)
@@ -427,6 +428,7 @@ func (instance *DigitalSignatureCollection) GetEnumerator() (*DigitalSignatureE
427428
}
428429

429430

431+
430432
func DeleteDigitalSignatureCollection(digitalsignaturecollection *DigitalSignatureCollection){
431433
runtime.SetFinalizer(digitalsignaturecollection, nil)
432434
C.Delete_DigitalSignatureCollection(digitalsignaturecollection.ptr)

0 commit comments

Comments
 (0)