Skip to content

Instantly share code, notes, and snippets.

@noqisofon
Created December 6, 2010 05:25
Show Gist options
  • Save noqisofon/729918 to your computer and use it in GitHub Desktop.
Save noqisofon/729918 to your computer and use it in GitHub Desktop.
canopus::model::DataObject#getFormats() のテスト。
#include <canopus/core.hxx>
#include <canopus/model/DetaObject.hxx>
using canopus;
using canopus::model;
int main()
{
DataObject* data = new DataObject( DataFormats::Text, "My text sting" );
const Array* all_formats = data->getFormats();
Console::puts( "the format(s)? associated with the are: \n" );
for ( int i = 0; i < all_formats->length(); i ++ ) {
Console::puts( all_formats[i]->toString() );
Console::puts( "\n" );
}
delete data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment