GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Protected Member Functions | List of all members
TGo4Parameter Class Reference

#include <TGo4Parameter.h>

+ Inheritance diagram for TGo4Parameter:

Public Member Functions

 TGo4Parameter ()
 
 TGo4Parameter (const char *name, const char *title="This is a Go4 Parameter Object")
 
virtual ~TGo4Parameter ()
 
virtual Int_t PrintParameter (Text_t *buffer=nullptr, Int_t buflen=0)
 
void Print (Option_t *opt="") const override
 
virtual Bool_t UpdateFrom (TGo4Parameter *rhs)
 
Bool_t UpdateFromUrl (const char *rest_url_opt)
 
virtual Bool_t CustomUpdateFrom () const
 
void Clear (Option_t *opt="") override
 
void GetMemberValues (TObjArray *fItems)
 
Bool_t SetMemberValues (TObjArray *fItems)
 
void SavePrimitive (std::ostream &fs, Option_t *opt="") override
 
TGo4ParameterStatusCreateStatus ()
 
Bool_t SetStatus (TGo4ParameterStatus *status)
 

Protected Member Functions

void GetMemberValues (TObjArray *fItems, TClass *cl, char *ptr, unsigned long int cloffset)
 
Bool_t SetMemberValues (TObjArray *items, Int_t &itemsindx, TClass *cl, char *ptr, unsigned long int cloffset)
 
Int_t FindArrayLength (TObjArray *items, Int_t &itemsindx, TDataMember *member)
 

Detailed Description

Base class for all parameter aggregations, e.g. calibration data.

Author
J. Adamczewski / S. Linev
Since
Jun-2002

Definition at line 28 of file TGo4Parameter.h.

Constructor & Destructor Documentation

◆ TGo4Parameter() [1/2]

TGo4Parameter::TGo4Parameter ( )

Definition at line 35 of file TGo4Parameter.cxx.

◆ TGo4Parameter() [2/2]

TGo4Parameter::TGo4Parameter ( const char *  name,
const char *  title = "This is a Go4 Parameter Object" 
)

Definition at line 40 of file TGo4Parameter.cxx.

References GO4TRACE.

◆ ~TGo4Parameter()

TGo4Parameter::~TGo4Parameter ( )
virtual

Definition at line 72 of file TGo4Parameter.cxx.

References GO4TRACE.

Member Function Documentation

◆ Clear()

void TGo4Parameter::Clear ( Option_t *  opt = "")
override

Definition at line 124 of file TGo4Parameter.cxx.

References GetMemberValues(), and SetMemberValues().

Referenced by CustomUpdateFrom().

◆ CreateStatus()

TGo4ParameterStatus * TGo4Parameter::CreateStatus ( )

Creates parameter status object. It should be destroyed by the user

Definition at line 451 of file TGo4Parameter.cxx.

Referenced by CustomUpdateFrom().

◆ CustomUpdateFrom()

virtual Bool_t TGo4Parameter::CustomUpdateFrom ( ) const
inlinevirtual

Specifies, if user implement UpdateFrom() method and it should be used when parameter updated from other. Otherwise, default method with help of ParameterStatus will be used

Definition at line 54 of file TGo4Parameter.h.

References Clear(), CreateStatus(), FindArrayLength(), GetMemberValues(), SavePrimitive(), SetMemberValues(), and SetStatus().

Referenced by TGo4ParameterStatus::UpdateParameterValues().

◆ FindArrayLength()

Int_t TGo4Parameter::FindArrayLength ( TObjArray *  items,
Int_t &  itemsindx,
TDataMember *  member 
)
protected

◆ GetMemberValues() [1/2]

void TGo4Parameter::GetMemberValues ( TObjArray *  fItems)

◆ GetMemberValues() [2/2]

void TGo4Parameter::GetMemberValues ( TObjArray *  fItems,
TClass *  cl,
char *  ptr,
unsigned long int  cloffset 
)
protected

◆ Print()

void TGo4Parameter::Print ( Option_t *  opt = "") const
override

Definition at line 46 of file TGo4Parameter.cxx.

References PrintParameter().

Referenced by TGo4FitterEnvelope::Print(), and TXXXProc::TXXXProc().

◆ PrintParameter()

Int_t TGo4Parameter::PrintParameter ( Text_t *  buffer = nullptr,
Int_t  buflen = 0 
)
virtual

DEPRECATED - please use Print(Option_t *) signature Basic method to printout parameter on stdout or in text buffer; to be overridden by specific subclass

Definition at line 53 of file TGo4Parameter.cxx.

References GetMemberValues(), and TGo4Status::PrintLine().

Referenced by Print().

◆ SavePrimitive()

void TGo4Parameter::SavePrimitive ( std::ostream &  fs,
Option_t *  opt = "" 
)
override

Standard way to store parameter in form of macro, If

Parameters
opt== "savemacro", parameter saved in form of macro, which can be rerun in analysis- see saveparam.C macro for example

Definition at line 401 of file TGo4Parameter.cxx.

References GetMemberValues(), TGo4ParameterMember::kTArray_t, TGo4ParameterMember::kTGo4Fitter_t, and TGo4ParameterMember::kTString_t.

Referenced by CustomUpdateFrom().

◆ SetMemberValues() [1/2]

Bool_t TGo4Parameter::SetMemberValues ( TObjArray *  fItems)

◆ SetMemberValues() [2/2]

Bool_t TGo4Parameter::SetMemberValues ( TObjArray *  items,
Int_t &  itemsindx,
TClass *  cl,
char *  ptr,
unsigned long int  cloffset 
)
protected

◆ SetStatus()

Bool_t TGo4Parameter::SetStatus ( TGo4ParameterStatus status)

Set status object - apply member values to the parameter

Definition at line 456 of file TGo4Parameter.cxx.

References TGo4ParameterStatus::UpdateParameterValues().

Referenced by CustomUpdateFrom().

◆ UpdateFrom()

Bool_t TGo4Parameter::UpdateFrom ( TGo4Parameter rhs)
virtual

◆ UpdateFromUrl()

Bool_t TGo4Parameter::UpdateFromUrl ( const char *  rest_url_opt)

Method used by HTTP server to update some fields, specified in URL syntax

Definition at line 95 of file TGo4Parameter.cxx.

References GetMemberValues(), TGo4Log::Info(), SetMemberValues(), and UpdateFrom().


The documentation for this class was generated from the following files: