Example ObjectRepository new 014

 

 

Description

This example shows the new function create a new Object Repository with two key-value pairs.

 

Details

(setq gor (new ObjectRepository: "myarchive.odb")) Returns: #<ObjectRepository 197815>
(setq gor["one"] "Hello World") Returns: #<ObjectRepository 197815>
(setq gor["two"] "Goodbye World") Returns: #<ObjectRepository 197815>
(length gor) Returns: 2

The contents of the Object REpository are cleared.

(clear gor) Returns: ---
(length gor) Returns: 0

Notes and Hints

SECURITY WARNING: If the ObjectRepository is later opened with a different key value from was specified during file creation, as a security measure, the ObjectRepository will be made unrecoverable.

 

Related Examples

Here are examples of the new function at work.

BitVector new 013 Brick new 015 ByteVector new 015 CpxVector new 015
Dictionary new 004 Directory new 005 Directory new 006 FltVector new 009
IntVector new 010 Lambda new 001 Lambda new 002 Lambda new 003
Matrix new 009 Matrix new 010 NumMatrix new 015 NumVector new 011
ObjVector new 012 ObjectRepository new 014 PcodeVector new 014 ShortVector new 011
String new 001 Structure new 003 Symbol new 002 Vector new 007
Vector new 008

 

Function Links

Here is the link to the current function used in this example.

new

Here are a number of links to other related functions.

defmethod(#void)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

ObjectRepository

Here are a number of links to examples having similar argument types.

ObjectRepository abortTransaction 001 ObjectRepository addMethod 026 ObjectRepository attachLibrarian 001 ObjectRepository beginTransaction 001
ObjectRepository checkPointTransaction 001 ObjectRepository clear 002 ObjectRepository commitTransaction 001 ObjectRepository compare 021
ObjectRepository compare 022 ObjectRepository compareEQ 021 ObjectRepository compareEQ 022 ObjectRepository compareGE 021
ObjectRepository compareGE 022 ObjectRepository compareGT 021 ObjectRepository compareGT 022 ObjectRepository compareLE 021
ObjectRepository compareLE 022 ObjectRepository compareLT 021 ObjectRepository compareLT 022 ObjectRepository compareNE 021
ObjectRepository compareNE 022 ObjectRepository comparison 021 ObjectRepository comparison 022 ObjectRepository defmethod 023
ObjectRepository delete 013 ObjectRepository detachLibrarian 001 ObjectRepository exportTab 001 ObjectRepository importTab 001
ObjectRepository inspect 002 ObjectRepository isIdentical 019 ObjectRepository isImmediate 001 ObjectRepository length 016
ObjectRepository loadRepository 001 ObjectRepository methodsOf 023 ObjectRepository new 014 ObjectRepository ref 030
ObjectRepository ref 031 ObjectRepository ref 032 ObjectRepository ref 033 ObjectRepository ref 034
ObjectRepository refLibrarian 001 ObjectRepository rename 001 ObjectRepository saveImmediate 001 ObjectRepository saveRepository 001
ObjectRepository send 026 ObjectRepository setf 001 ObjectRepository setf 002 ObjectRepository setq 027
ObjectRepository sizeof 027 ObjectRepository type 024

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE