OpenStudioCore: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

const AccessPolicygetPolicy (const openstudio::IddObjectType &) const
 
bool loadFile (QFile &file)
 
bool loadFile (const openstudio::path &path)
 

Static Public Member Functions

static AccessPolicyStoreInstance ()
 

Detailed Description

This class is a simple singleton that stores AccessPolicy for ModelObjects

Member Function Documentation

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 ( QFile &  file)

loads an xml with the policy rules

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