spnOpenSpc: Open spec in spec-group in the top tab/spec-tree

Description Usage Arguments Value Author(s) See Also Examples

Description

Open spec in Grp spec-group. All the spec files from one spec-group must be in the direcory of the group file, so avoid using a path for SFilename. The names of groups or specs are the filenames of the respected ones without path and extension (no space or special characters allowed). To avoid misinterpretation the names of group or spec cannot be numbers (even the operation system let you do it).

Usage

1
spnOpenSpc(Grp,SFilename)

Arguments

Grp

- the name(character string) or the index(integer) of the group; 0 - active group.

SFilename

- character string. The path is ignored and the path of current spec-group is assumed, so it would be better if you don't use path

Value

spnOpenSpc returns returns the number of specs after the adding, which is the index of added spec.

Author(s)

Teodor Krastev

See Also

spnOpenGrp , spnOpenTree

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Initialization of Spectrino
spnNew() 

# generate test set
spnOpenTree("<test>")

# delete all the specs from second group;
spnDelSpc(2,"*") 

# that will open existing spec Test23.txt from the directory of "Test2" 
i1 <- spnOpenSpc("Test2","test23.txt") 

# Release of Spectrino
#spnFree(TRUE)

spectrino documentation built on June 4, 2019, 1:02 a.m.