TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/ofx/attribute/OfxhAttributeDescriptor.cpp
Go to the documentation of this file.
00001 #include "OfxhAttributeDescriptor.hpp"
00002 
00003 namespace tuttle {
00004 namespace host {
00005 namespace ofx {
00006 namespace attribute {
00007 
00008 /// properties common to the desciptor and instance
00009 /// the desc and set them, the instance cannot
00010 static const property::OfxhPropSpec attributeDescriptorStuffs[] = {
00011         { kOfxPropName, property::ePropTypeString, 1, true, "SET_ME_ON_CONSTRUCTION" },
00012         { kOfxPropLabel, property::ePropTypeString, 1, false, "" },
00013         { kOfxPropShortLabel, property::ePropTypeString, 1, false, "" },
00014         { kOfxPropLongLabel, property::ePropTypeString, 1, false, "" },
00015         { 0 },
00016 };
00017 
00018 OfxhAttributeDescriptor::OfxhAttributeDescriptor()
00019         : _properties( property::OfxhSet() )
00020 {
00021         getEditableProperties().addProperties( attributeDescriptorStuffs );
00022 }
00023 
00024 OfxhAttributeDescriptor::OfxhAttributeDescriptor( const property::OfxhSet& properties )
00025         : _properties( properties )
00026 {
00027         getEditableProperties().addProperties( attributeDescriptorStuffs );
00028 }
00029 
00030 OfxhAttributeDescriptor::~OfxhAttributeDescriptor() {}
00031 
00032 }
00033 }
00034 }
00035 }
00036