ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SG::FolderItem Class Reference

a Folder item (data object) is identified by the clid/key pair More...

#include <SGFolderItem.h>

Collaboration diagram for SG::FolderItem:

Public Member Functions

 FolderItem (CLID id=CLID_NULL, const std::string &key="", bool exact=false)
 
CLID id () const
 
const std::string & key () const
 
bool operator< (const FolderItem &rhs) const
 
bool isFolder () const
 
bool exact () const
 

Private Attributes

CLID m_id
 
std::string m_key
 
bool m_exact
 

Detailed Description

a Folder item (data object) is identified by the clid/key pair

If the exact flag is set, then the request is to write the object as exactly that class, not as any derived class.

Author
pcala.nosp@m.fiur.nosp@m.a@lbl.nosp@m..gov - ATLAS Collaboration
Id
SGFolderItem.h,v 1.2 2008-03-26 22:36:54 calaf Exp

Definition at line 24 of file SGFolderItem.h.

Constructor & Destructor Documentation

◆ FolderItem()

SG::FolderItem::FolderItem ( CLID  id = CLID_NULL,
const std::string &  key = "",
bool  exact = false 
)
inline

Definition at line 26 of file SGFolderItem.h.

29  : m_id(id), m_key(key), m_exact(exact) {}

Member Function Documentation

◆ exact()

bool SG::FolderItem::exact ( ) const
inline

Definition at line 37 of file SGFolderItem.h.

37 { return m_exact; }

◆ id()

CLID SG::FolderItem::id ( ) const
inline

Definition at line 30 of file SGFolderItem.h.

30 { return m_id; }

◆ isFolder()

bool SG::FolderItem::isFolder ( ) const

Definition at line 8 of file SGFolderItem.cxx.

8  {
9  return false;
10  //FIXME return (m_id == ClassID_traits<Folder>::ID());
11 }

◆ key()

const std::string& SG::FolderItem::key ( ) const
inline

Definition at line 31 of file SGFolderItem.h.

31 { return m_key; }

◆ operator<()

bool SG::FolderItem::operator< ( const FolderItem rhs) const
inline

Definition at line 32 of file SGFolderItem.h.

32  {
33  return ( id() < rhs.id() ||
34  ( (id() == rhs.id()) && key() < rhs.key()) );
35  }

Member Data Documentation

◆ m_exact

bool SG::FolderItem::m_exact
private

Definition at line 41 of file SGFolderItem.h.

◆ m_id

CLID SG::FolderItem::m_id
private

Definition at line 39 of file SGFolderItem.h.

◆ m_key

std::string SG::FolderItem::m_key
private

Definition at line 40 of file SGFolderItem.h.


The documentation for this class was generated from the following files:
SG::FolderItem::m_exact
bool m_exact
Definition: SGFolderItem.h:41
SG::FolderItem::m_key
std::string m_key
Definition: SGFolderItem.h:40
SG::FolderItem::key
const std::string & key() const
Definition: SGFolderItem.h:31
SG::FolderItem::m_id
CLID m_id
Definition: SGFolderItem.h:39
SG::FolderItem::exact
bool exact() const
Definition: SGFolderItem.h:37