R/generic_element_list.R

Defines functions getName

Documented in getName

#_______________________________________________________________________________
#----                         pmx_element class                             ----
#_______________________________________________________________________________

#' 
#' PMX element class.
#' 
#' @export
setClass(
  "pmx_element",
  representation(
  )
)

#_______________________________________________________________________________
#----                           getName                                     ----
#_______________________________________________________________________________

#' Get element name.
#' 
#' @param x element to know the name
#' @return the name of this element
#' @export
#' @rdname getName
getName <- function(x) {
  stop("No default function is provided")
}

setGeneric("getName", function(x) {
  standardGeneric("getName")
})

Try the campsismod package in your browser

Any scripts or data that you put into this service are public.

campsismod documentation built on Oct. 12, 2023, 5:13 p.m.