![]() |
![]() |
![]() |
![]() |
![]() |
Files in the TTCN Suite
File Types
The TTCN Suite supports a number of different file types with various suffixes:
The working structure and table files are the internal TTCN Suite files and will be created temporarily in the temporary directory. The TTCN Suite checkpoints automatically to these files during editing but the main data base files are updated only on save.
The revert file is created in the session directory (which is the same as the target directory unless the ITEX_SESSION_DIR environment variable is set). It has a name consisting of the name of the main data base file (including extension), a hash sigh (#) and a sequence number. The revert file is always stored in the TTCN-GR format even if it has a name like filename.mp#0.You can specify the compression of the revert files by using the resource revertFileCompressionMethod.
UNIX commands such as mv, cp, rm etc. can be used on these files (but use with caution!).
Locking of TTCN Documents
When a TTCN document is opened in the TTCN Suite Browser, a read-lock file for it (which has the additional suffix '-read_lock') is automatically created. The lock file is created in the same directory as the document. When the TTCN Suite Browser exits, the read-lock file is removed. If any another user (or the same user but using another TTCN Browser) try to open the same TTCN document, he will get a question informing that the file is opened by another user and asking to open it in read-only mode. The command-line TTCN2C compiler and other access applications always open TTCN documents in read-only mode. When the TTCN document is opened in read-only mode, no read-lock file is be created.
When a TTCN document is saved, a lock file for it (which has the additional suffix -lock) is automatically created. This means that no other user can access this file during the save operation. The lock files are created in the same directory as where the document is saved.
Transferring TTCN Suite TTCN Documents
The entire TTCN Suite data bases may be transferred between storage areas. This is useful in order to preserve information that is lost in the TTCN-MP format. Use the usual UNIX commands to achieve this.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |