#include <Variable.h>
Inheritance diagram for makefile::Variable:

Public Member Functions | |
| Variable (string name_, string value_, Makefile::QuoteMode quotemode_=Makefile::SHELL) | |
| Takes a string value. | |
| Variable (string name_, double value_, Makefile::QuoteMode quotemode_=Makefile::NONE) | |
| Takes a numeric value. | |
| Variable (string name_, std::vector< string >::iterator start, std::vector< string >::iterator end, Makefile::QuoteMode quotemode_=Makefile::SHELL, string separator_=" ") | |
| Takes values and appends them using seperator. | |
| virtual | ~Variable () |
| virtual const string | getName () |
| virtual const string | getValue () |
| virtual const string | getquotedValue () |
| virtual const std::vector< string > & | getValues () |
| virtual VariableDef & | getDef () |
| virtual VariableRef & | getRef () |
| void | setQuoteMode (Makefile::QuoteMode mode) |
| void | setExport (bool ex) |
| bool | getExport () |
Protected Member Functions | |
| virtual void | checkName () |
| According to Gnu Make Manual http://www.gnu.org/software/make/manual/html_node/Using-Variables.html#Using-Variables it's recommended to use only alphanumerics and _ in Variable name. | |
| virtual void | checkValue () |
| It's not allowed to have newline characters in Variable values, if they are defined like this. | |
| void | Create () |
| Variable (string name_) | |
| To be used only by subclasses, like AutoVariable. | |
Protected Attributes | |
| string | name |
| std::vector< string > | values |
| holds a list of values | |
| string | separator |
| separator for output of the value list | |
| VariableDef * | def |
| A VariableDef connected to the Variable. | |
| VariableRef * | ref |
| A VariableDef connected to the Variable. | |
| Makefile::QuoteMode | quotemode |
| bool | exported |
| Decides wether this Variable is defined with export. | |
Private Member Functions | |
| Variable (const Variable &) | |
The MakefileItems VariableRef and VariableDef refer are linked to one of these to know what they represent.
Definition at line 42 of file Variable.h.
|
|
To be used only by subclasses, like AutoVariable.
Definition at line 63 of file Variable.cpp. References Create(). |
|
|
|
|
||||||||||||||||
|
Takes a string value.
Definition at line 69 of file Variable.cpp. References checkName(), checkValue(), Create(), and values. |
|
||||||||||||||||
|
Takes a numeric value.
Definition at line 77 of file Variable.cpp. References checkName(), Create(), and values. |
|
||||||||||||||||||||||||
|
Takes values and appends them using seperator. The seperators will not be quoted so using this, it's possible to have a list of filenames with spaces in them, quote those correctly, but have a space seperated list of filenames. Definition at line 88 of file Variable.cpp. References checkName(), checkValue(), Create(), and values. |
|
|
Definition at line 98 of file Variable.cpp. |
|
|
According to Gnu Make Manual http://www.gnu.org/software/make/manual/html_node/Using-Variables.html#Using-Variables it's recommended to use only alphanumerics and _ in Variable name.
Definition at line 39 of file Variable.cpp. References cstr, name, and makefile::regex. Referenced by Variable(). |
|
|
It's not allowed to have newline characters in Variable values, if they are defined like this.
Definition at line 50 of file Variable.cpp. References cstr, getValue(), and makefile::regex. Referenced by Variable(). |
|
|
Definition at line 57 of file Variable.cpp. Referenced by Variable(). |
|
|
Reimplemented in makefile::AutoVariable. Definition at line 109 of file Variable.h. Referenced by createfiles_make(), HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::AssistantMakefilelibExport::createItems(), main(), makefile::tester::TestConditional::TestConditional(), makefile::tester::TestVariable::TestVariable(), tryall(), trycond(), trymakefile(), and tryrule(). |
|
|
Definition at line 128 of file Variable.h. Referenced by makefile::VariableDef::toString(). |
|
|
Definition at line 88 of file Variable.h. References makefile::string. Referenced by HuginBase::PTScriptParsing::readVar(), makefile::tester::TestConditional::TestConditional(), makefile::VariableRef::toString(), makefile::VariableDef::toString(), tryall(), trycond(), and HuginBase::Panorama::updateVariable(). |
|
|
Reimplemented in makefile::AutoVariable. Definition at line 116 of file Variable.cpp. References quotemode, makefile::string, and values. Referenced by makefile::VariableDef::toString(). |
|
|
|
Reimplemented in makefile::AutoVariable. Definition at line 106 of file Variable.cpp. References makefile::string, and values. Referenced by checkValue(), PanoDetector::matchPrealigned(), tryall(), and HuginBase::Panorama::updateVariable(). |
|
|
Reimplemented in makefile::AutoVariable. Definition at line 104 of file Variable.h. Referenced by HuginBase::PanoramaMakefilelibExport::createItems(). |
|
|
Definition at line 124 of file Variable.h. Referenced by HuginBase::PanoramaMakefilelibExport::createItems(). |
|
|
Definition at line 119 of file Variable.h. Referenced by tryall(). |
|
|
A VariableDef connected to the Variable.
Definition at line 51 of file Variable.h. Referenced by Create(). |
|
|
Decides wether this Variable is defined with export.
Definition at line 56 of file Variable.h. |
|
|
Definition at line 45 of file Variable.h. Referenced by checkName(). |
|
|
Definition at line 54 of file Variable.h. Referenced by getquotedValue(). |
|
|
A VariableDef connected to the Variable.
Definition at line 53 of file Variable.h. Referenced by Create(). |
|
|
separator for output of the value list
Definition at line 49 of file Variable.h. |
|
|
holds a list of values
Definition at line 47 of file Variable.h. Referenced by getquotedValue(), getValue(), and Variable(). |
1.3.9.1