Created
December 6, 2010 05:25
-
-
Save noqisofon/729918 to your computer and use it in GitHub Desktop.
canopus::model::DataObject#getFormats() のテスト。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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