GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4UserStoreParameter.cxx
Go to the documentation of this file.
1 // $Id: TGo4UserStoreParameter.cxx 2627 2019-10-01 08:02:45Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TGo4UserStoreParameter.h"
15 
16 #include "TGo4Status.h"
17 #include "TGo4Log.h"
18 #include "Go4EventServerTypes.h"
19 
22 {
23  SetTitle(name);
24 }
25 
27 : TGo4EventStoreParameter("Default Go4 UserStore", GO4EV_USER)
28 {
29  SetTitle("Go4UserStore");
30 }
31 
33 {
34 
35 }
36 
37 Int_t TGo4UserStoreParameter::PrintParameter(Text_t* buffer, Int_t buflen)
38 {
39  GO4TRACE((12,"TGo4UserStoreParameter::PrintParameter()",__LINE__, __FILE__));
40  Int_t locallen=128000;
41  Text_t localbuf[128000];
42  if(buflen<0 && buffer!=0)
43  return 0;
44  Int_t size=0;
45  Int_t restlen=locallen;
46  Text_t* current=localbuf;
47  Int_t delta=TGo4EventStoreParameter::PrintParameter(current,restlen);
48  restlen-=delta;
49  current+=delta;
50  current=TGo4Status::PrintIndent(current,restlen);
51  current=TGo4Status::PrintBuffer(current,restlen, " Expression: %s\n",GetExpression());
52  if(buffer==0)
53  {
54  std::cout << localbuf << std::endl;
55  }
56  else
57  {
58  size=locallen-restlen;
59  if(size>buflen-1)
60  size=buflen-1;
61  strncpy(buffer,localbuf,size);
62  }
63  return size;
64 }
65 
66 
68 {
69  TGo4UserStoreParameter* filepar=dynamic_cast<TGo4UserStoreParameter*>(rhs);
70 
71  if(filepar!=0)
73 
74  return kFALSE;
75 }
virtual Bool_t UpdateFrom(TGo4Parameter *rhs)
virtual Int_t PrintParameter(Text_t *buffer=0, Int_t buflen=0)
static Text_t * PrintIndent(Text_t *buffer, Int_t &buflen)
Definition: TGo4Status.cxx:72
virtual Bool_t UpdateFrom(TGo4Parameter *rhs)
const char * GetExpression() const
#define GO4TRACE(X)
Definition: TGo4Log.h:26
virtual Int_t PrintParameter(Text_t *buffer=0, Int_t buflen=0)
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)
Definition: TGo4Status.cxx:84