1 #include "NullTransform.h"
3 NullTransform::NullTransform() : Transform(CFSTR("NullTransform"))
9 CFTypeRef
NullTransform::Make()
11 return CoreFoundationHolder::MakeHolder(gInternalCFObjectName
, new NullTransform());
16 void NullTransform::AttributeChanged(CFStringRef name
, CFTypeRef value
)
18 // move input to output, otherwise do nothing
19 if (CFStringCompare(name
, kSecTransformInputAttributeName
, 0) == kCFCompareEqualTo
)
21 SetAttributeNoCallback(kSecTransformOutputAttributeName
, value
);
27 std::string
NullTransform::DebugDescription()
29 return Transform::DebugDescription() + ": NullTransform";
34 class NullTransformFactory
: public TransformFactory
37 NullTransformFactory();
39 virtual CFTypeRef
Make();
44 TransformFactory
* NullTransform::MakeTransformFactory()
46 return new NullTransformFactory();
51 NullTransformFactory::NullTransformFactory() : TransformFactory(CFSTR("Null Transform"))
57 CFTypeRef
NullTransformFactory::Make()
59 return NullTransform::Make();