ExtEntryClass: Extension entry class

ExtEntryClassR Documentation

Extension entry class

Description

A class for generating a new entry class.

Details

This class generates a new entry class from given parameters. The new class can inherit directly from BiodbEntry or from one of its sub-classes: BiodbCsvEntry, BiodbHtmlEntry, ...

Super classes

biodb::ExtGenerator -> biodb::ExtFileGenerator -> ExtEntryClass

Methods

Public methods

Inherited methods

Method new()

Initializer.

Usage
ExtEntryClass$new(...)
Arguments
...

See the constructor of ExtFileGenerator for the parameters.

Returns

Nothing.


Method clone()

The objects of this class are cloneable with this method.

Usage
ExtEntryClass$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

# Generate a new entry class inside R folder:
pkgFolder <- file.path(tempfile(), 'biodbFoo')
dir.create(pkgFolder, recursive=TRUE)
biodb::ExtEntryClass$new(path=pkgFolder, dbName='foo.db',
                         dbTitle='Foo database',
                         connType='mass', entryType='xml')$generate()


pkrog/biodb documentation built on Nov. 29, 2022, 4:24 a.m.