CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Fireworks/Core/src/FWItemSingleAccessor.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWItemSingleAccessor_h
00002 #define Fireworks_Core_FWItemSingleAccessor_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWItemSingleAccessor
00007 //
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Sat Oct 18 11:36:41 EDT 2008
00019 // $Id: FWItemSingleAccessor.h,v 1.4 2010/07/23 16:02:54 eulisse Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 #include "Fireworks/Core/interface/FWItemAccessorBase.h"
00026 
00027 // forward declarations
00028 
00029 class FWItemSingleAccessor : public FWItemAccessorBase {
00030 
00031 public:
00032    FWItemSingleAccessor(const TClass*);
00033    virtual ~FWItemSingleAccessor();
00034 
00035    // ---------- const member functions ---------------------
00036    const void* modelData(int iIndex) const;
00037    const void* data() const;
00038    unsigned int size() const;
00039    const TClass* modelType() const;
00040    const TClass* type() const;
00041 
00042    bool isCollection() const;
00043 
00044    // ---------- member functions ---------------------------
00045    void setData(const ROOT::Reflex::Object& );
00046    virtual void reset();
00047 
00048 private:
00049    FWItemSingleAccessor(const FWItemSingleAccessor&); // stop default
00050 
00051    const FWItemSingleAccessor& operator=(const FWItemSingleAccessor&); // stop default
00052 
00053    // ---------- member data --------------------------------
00054    const TClass* m_type;
00055    const void* m_data;
00056 
00057 };
00058 
00059 
00060 #endif