OpenStudio:utilities
 AllClasses Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages

#include "SqlFileTimeSeriesQuery.hpp"

Public Member Functions

 KeyValueIdentifier (const std::string &name)
 KeyValueIdentifier (const std::vector< std::string > &names)
 KeyValueIdentifier (const boost::regex &re)
std::vector< std::string > names () const
boost::optional< boost::regex > regex () const

Detailed Description

Small class to let users identify one or more key values by name or regex.

Constructor & Destructor Documentation

openstudio::KeyValueIdentifier::KeyValueIdentifier ( const std::string &  name)

Construct from single name.

openstudio::KeyValueIdentifier::KeyValueIdentifier ( const std::vector< std::string > &  names)

Construct from multiple names.

Throws if names.size() == 0.

openstudio::KeyValueIdentifier::KeyValueIdentifier ( const boost::regex &  re)

Construct from regex.

Member Function Documentation

std::vector<std::string> openstudio::KeyValueIdentifier::names ( ) const

Get name(s).

boost::optional<boost::regex> openstudio::KeyValueIdentifier::regex ( ) const

Get regex, if it exists.