KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDBTape.cpp
Go to the documentation of this file.
1 /***************************************************************************
2 $Id: KVDBTape.cpp,v 1.7 2006/10/19 14:32:43 franklan Exp $
3 
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  ***************************************************************************/
10 #include "KVDBTape.h"
11 #include "KVDBRun.h"
12 
14 
15 
16 
18 
20 {
21 }
22 
23 
24 
26 
28 {
29 
30  SetNumber(tape_number);
31  Char_t name[80];
32  sprintf(name, "Tape %d", tape_number);
33  SetName(name);
34  SetTitle("Data storage tape");
35  KVDBKey* key = AddKey("Runs", "List Of Runs");
36  key->SetUniqueStatus(kTRUE);
37 }
38 
39 
40 
42 
43 KVDBTape::~KVDBTape()
44 {
45 }
46 
47 
48 
51 
53 {
54  //add run to list of runs stored on this tape
55  AddLink("Runs", run);
56 }
57 
58 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
const Bool_t kTRUE
Cross-reference in a KVDataBase.
Definition: KVDBKey.h:37
virtual void SetUniqueStatus(Bool_t unique)
Definition: KVDBKey.h:72
virtual void SetNumber(Int_t n)
Definition: KVDBRecord.h:76
virtual Bool_t AddKey(KVDBKey *key, Bool_t check=kTRUE)
Definition: KVDBRecord.cpp:65
virtual Bool_t AddLink(const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE)
Definition: KVDBRecord.cpp:122
Description of an experimental run in database ,.
Definition: KVDBRun.h:35
Database entry describing a data storage tape used to store raw data.
Definition: KVDBTape.h:24
void AddRun(KVDBRun *run)
add run to list of runs stored on this tape
Definition: KVDBTape.cpp:52
KVDBTape()
Definition: KVDBTape.cpp:19
virtual void SetTitle(const char *title="")
virtual void SetName(const char *name)