/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions
RootIOUserData Class Reference

Tack on simple user data to a RootIOBaseObject. More...

#include <RootIOUserData.h>

List of all members.

Public Types

typedef std::map< std::string,
RootIOUserDataProxy * > 
ProxyCollection
 A collection of proxies associated to one stream.
typedef std::map< std::string,
ProxyCollection
ProxyMap
 Association of a ProxyCollection to a stream name.

Public Member Functions

 RootIOUserData ()
virtual ~RootIOUserData ()
ProxyMapinputMap ()
 Access the proxy map for input.
ProxyMapoutputMap ()
 Access the proxy map for output.
ProxyCollectionproxies (const std::string &streamname, ProxyMap &pm)
 Access the proxies associated with the given stream and map.
ProxyCollectioninput (const std::string &streamname)
 Access the proxies for a given input stream name.
ProxyCollectionoutput (const std::string &streamname)
 Access the proxies for a given output stream name.

Detailed Description

Tack on simple user data to a RootIOBaseObject.

Converters can arange for their presistent object to return a non-empty RootIOUserData object from the userData() method. It will be used to convert the map of user data into tree branches.

This is a refactoring of Dan Dwyer's PerBranches

Brett Viren <bv@bnl.gov> Thu Feb 24 09:40:38 2011

Definition at line 26 of file RootIOUserData.h.


Member Typedef Documentation

typedef std::map<std::string, RootIOUserDataProxy*> RootIOUserData::ProxyCollection

A collection of proxies associated to one stream.

Definition at line 33 of file RootIOUserData.h.

typedef std::map<std::string, ProxyCollection> RootIOUserData::ProxyMap

Association of a ProxyCollection to a stream name.

Definition at line 36 of file RootIOUserData.h.


Constructor & Destructor Documentation

RootIOUserData::RootIOUserData ( )

Definition at line 4 of file RootIOUserData.cc.

{
}
RootIOUserData::~RootIOUserData ( ) [virtual]

Definition at line 8 of file RootIOUserData.cc.

{
}

Member Function Documentation

RootIOUserData::ProxyMap & RootIOUserData::inputMap ( )

Access the proxy map for input.

Definition at line 12 of file RootIOUserData.cc.

{
    static ProxyMap s_proxyMap;
    return s_proxyMap;
}
RootIOUserData::ProxyMap & RootIOUserData::outputMap ( )

Access the proxy map for output.

Definition at line 17 of file RootIOUserData.cc.

{
    static ProxyMap s_proxyMap;
    return s_proxyMap;
}
RootIOUserData::ProxyCollection & RootIOUserData::proxies ( const std::string &  streamname,
RootIOUserData::ProxyMap pm 
)

Access the proxies associated with the given stream and map.

Definition at line 23 of file RootIOUserData.cc.

{
    ProxyMap::iterator pit = pm.find(streamname);
    if (pit != pm.end()) { return pit->second ; }

    pm[streamname] = ProxyCollection();
    return pm[streamname];
}
RootIOUserData::ProxyCollection & RootIOUserData::input ( const std::string &  streamname)

Access the proxies for a given input stream name.

If one does not exist it will be created.

Definition at line 33 of file RootIOUserData.cc.

{
    return this->proxies(streamname,this->inputMap());
}
RootIOUserData::ProxyCollection & RootIOUserData::output ( const std::string &  streamname)

Access the proxies for a given output stream name.

If one does not exist it will be created.

Definition at line 37 of file RootIOUserData.cc.

{
    return this->proxies(streamname,this->outputMap());
}

The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:58:18 for RootIOSvc by doxygen 1.7.4