ExtEntryClass {biodb} | R 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

- `ExtEntryClass$new()`

- `ExtEntryClass$clone()`

Inherited methods

- `biodb::ExtGenerator$generate()`

- `biodb::ExtGenerator$upgrade()`

#### Method `new()`

Constructor

##### Usage

    ExtEntryClass$new(...)

##### Arguments

`...`

  See the constructor of ExtFileGenerator for the parameters.

##### Returns

A new instance.

#### 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()

[Package biodb version 1.0.4 Index]