OpenStudio:model
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
openstudio::model::AccessPolicyStore Class Reference

#include <AccessPolicyStore.hpp>

Public Member Functions

void clear ()
 
const AccessPolicygetPolicy (const openstudio::IddObjectType &) const
 
bool loadFile (openstudio::filesystem::ifstream &file)
 
bool loadFile (const openstudio::path &path)
 
bool loadFile (const QByteArray &data)
 

Static Public Member Functions

static AccessPolicyStoreInstance ()
 

Detailed Description

This class is a simple singleton that stores AccessPolicy for ModelObjects

Member Function Documentation

void openstudio::model::AccessPolicyStore::clear ( )
const AccessPolicy* openstudio::model::AccessPolicyStore::getPolicy ( const openstudio::IddObjectType &  ) const

Each IddObjectType has a uniqueAcessPolicy. This function will retrieve it

static AccessPolicyStore& openstudio::model::AccessPolicyStore::Instance ( )
static
bool openstudio::model::AccessPolicyStore::loadFile ( openstudio::filesystem::ifstream &  file)

loads an xml with the policy rules

bool openstudio::model::AccessPolicyStore::loadFile ( const openstudio::path &  path)
bool openstudio::model::AccessPolicyStore::loadFile ( const QByteArray &  data)