OpenStudioCore:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
openstudio::WorkspaceObjectDiff Class Reference

#include <WorkspaceObjectDiff.hpp>

+ Inheritance diagram for openstudio::WorkspaceObjectDiff:

Public Member Functions

boost::optional< UUID > newHandle () const
 get the new handle if there is one, use newValue to determine if field exists or not More...
 
boost::optional< UUID > oldHandle () const
 get the old handle if there was one, use oldValue to determine if field existed or not More...
 
 WorkspaceObjectDiff (unsigned index, boost::optional< std::string > oldValue, boost::optional< std::string > newValue, boost::optional< UUID > oldHandle, boost::optional< UUID > newHandle)
 
- Public Member Functions inherited from openstudio::IdfObjectDiff
template<typename T >
cast () const
 cast to type T, can throw std::bad_cast More...
 
 IdfObjectDiff ()
 
 IdfObjectDiff (boost::optional< unsigned > index, boost::optional< std::string > oldValue, boost::optional< std::string > newValue)
 
boost::optional< unsigned > index () const
 get the index that changed, uninitialized means no field (e.g. object level comment changed) More...
 
bool isNull () const
 returns true if oldValue == newValue More...
 
boost::optional< std::string > newValue () const
 get the new value, uninitialized optional means that the field no longer exists More...
 
boost::optional< std::string > oldValue () const
 get the old value, uninitialized optional means that the field did not previously exist More...
 
template<typename T >
boost::optional< T > optionalCast () const
 cast to optional of type T More...
 

Additional Inherited Members

- Protected Member Functions inherited from openstudio::IdfObjectDiff
 IdfObjectDiff (const std::shared_ptr< detail::IdfObjectDiff_Impl > &impl)
 

Detailed Description

WorkspaceObjectDiff represents a change to an WorkspaceObjectDiff.

Constructor & Destructor Documentation

openstudio::WorkspaceObjectDiff::WorkspaceObjectDiff ( unsigned  index,
boost::optional< std::string >  oldValue,
boost::optional< std::string >  newValue,
boost::optional< UUID >  oldHandle,
boost::optional< UUID >  newHandle 
)

Member Function Documentation

boost::optional<UUID> openstudio::WorkspaceObjectDiff::newHandle ( ) const

get the new handle if there is one, use newValue to determine if field exists or not

boost::optional<UUID> openstudio::WorkspaceObjectDiff::oldHandle ( ) const

get the old handle if there was one, use oldValue to determine if field existed or not