src/tool-shed.cpp
void Tool_shed::initialize(void) {
	if (getBoolean("expression")) {
		string value = getString("expression");
		parseExpression(value);
	}
	m_exclusion = getString("exclusion-expression");

	if (getBoolean("X")) {
		m_xInterp = getExInterp(getString("X"));
	}
	if (getBoolean("Y")) {
		m_yInterp = getExInterp(getString("Y"));
	}
	if (getBoolean("Z")) {
		m_zInterp = getExInterp(getString("Z"));
	}
}
//////////////////////////////
//
// Tool_shed::initialize --  Initializations that only have to be done once
//    for all HumdrumFile segments.
//
:initialize --  Initializations that only have to be done once
for all HumdrumFile segments.
: initialize -- Initializations that only have to be done once for all HumdrumFile segments .
void Tool_shed::initialize(void) {
	if (getBoolean("expression")) {
		string value = getString("expression");
		parseExpression(value);
	}
	m_exclusion = getString("exclusion-expression");
	if (getBoolean("X")) {
		m_xInterp = getExInterp(getString("X"));
	}
	if (getBoolean("Y")) {
		m_yInterp = getExInterp(getString("Y"));
	}
	if (getBoolean("Z")) {
		m_zInterp = getExInterp(getString("Z"));
	}
}
void Tool_shed :: initialize ( void ) { if ( getBoolean ( " " ) ) { string value = getString ( " " ) ; parseExpression ( value ) ; } m_exclusion = getString ( " " ) ; if ( getBoolean ( " " ) ) { m_xInterp = getExInterp ( getString ( " " ) ) ; } if ( getBoolean ( " " ) ) { m_yInterp = getExInterp ( getString ( " " ) ) ; } if ( getBoolean ( " " ) ) { m_zInterp = getExInterp ( getString ( " " ) ) ; } }
Tool_shed::initialize --  Initializations that only have to be done once
for all HumdrumFile segments.
Tool_shed :: initialize -- Initializations that only have to be done once for all HumdrumFile segments .