00001 #ifndef _TRANSFORMERSET_H_ 00002 #define _TRANSFORMERSET_H_ 00003 00004 #include <list> 00005 #include "streenode.h" 00006 #include "echonormalizer.h" 00007 #include "tplconstantnormalizer.h" 00008 00010 class TransformerSet : public list<Node::Transformer*> { 00011 public: 00012 TransformerSet(Node::Transformer **b, Node::Transformer **e) : list<Node::Transformer*>(b,e) {}; 00013 00014 void apply(Node *inNode); 00015 ~TransformerSet(); 00016 }; 00017 00018 static Node::Transformer* phpPreNormalizersVals[] = { new EchoNormalizer() }; 00019 static Node::Transformer* phpPostNormalizersVals[] = {}; 00020 static Node::Transformer* tplPostNormalizersVals[] = { new TPLConstantNormalizer() }; 00021 00022 static const size_t phpPreNormalizersSize = sizeof phpPreNormalizersVals / sizeof phpPreNormalizersVals[0]; 00024 static TransformerSet phpPreNormalizers(phpPreNormalizersVals, phpPreNormalizersVals + phpPreNormalizersSize); 00025 00026 static const size_t phpPostNormalizersSize = sizeof phpPostNormalizersVals / sizeof phpPostNormalizersVals[0]; 00028 static TransformerSet phpPostNormalizers(phpPostNormalizersVals, phpPostNormalizersVals + phpPostNormalizersSize); 00029 00030 static const size_t tplPostNormalizersSize = sizeof tplPostNormalizersVals / sizeof tplPostNormalizersVals[0]; 00032 static TransformerSet tplPostNormalizers(tplPostNormalizersVals, tplPostNormalizersVals + tplPostNormalizersSize); 00033 00034 #endif