Commits

shuerhaaken committed 5488b92

rename factory creation methods

Comments (0)

Files changed (57)

+commit dd7bdcce54855d801fdec2259875358e67528e24
+Author: Jörn Magens <shuerhaaken@googlemail.com>
+Date:   Wed Oct 23 12:38:46 2013 +0200
+
+    more documentation
+
 commit efed7663618a6b379a7abec6a70797a071558b75
 Author: Jörn Magens <shuerhaaken@googlemail.com>
 Date:   Wed Oct 23 10:48:44 2013 +0200

bindings/c/taginfo_c.cc

  * \return NULL if the file type cannot be determined or the file cannot
  * be opened. The returned object should be freed with taginfo_info_free() after usage
  */
-TagInfo_Info * taginfo_info_create_tag_info(const char *filename) {
-    return reinterpret_cast<TagInfo_Info *>(Info::create_tag_info(filename));
+TagInfo_Info * taginfo_info_create(const char *filename) {
+    return reinterpret_cast<TagInfo_Info *>(Info::create(filename));
 }
 
 /*!
  * \return NULL if the file type cannot be determined or the file cannot
  * be opened. The returned object should be freed with taginfo_info_free() after usage
  */
-TagInfo_Info * taginfo_info_create_tag_info_with_format(const char *filename,
+TagInfo_Info * taginfo_info_create_with_format(const char *filename,
                                                      TagInfo_MediaFileType media_file_type) {
-    return reinterpret_cast<TagInfo_Info *>(Info::create_tag_info_with_format(filename, 
+    return reinterpret_cast<TagInfo_Info *>(Info::create_with_format(filename, 
                                                                               (MediaFileType)media_file_type)
     );
 }
  * \return NULL if the file type cannot be determined or the file cannot
  * be opened. The returned object should be freed with taginfo_info_free() after usage
  */
-TagInfo_Info * taginfo_info_create_tag_info_from_mime(const char *filename, const char *mime_type) {
-    return reinterpret_cast<TagInfo_Info *>(Info::create_tag_info_from_mime(filename, 
+TagInfo_Info * taginfo_info_create_from_mime(const char *filename, const char *mime_type) {
+    return reinterpret_cast<TagInfo_Info *>(Info::create_from_mime(filename, 
                                                                             mime_type)
     );
 }

bindings/c/taginfo_c.h

 
 
 // FACTORY CREATION
-TagInfo_Info *taginfo_info_create_tag_info(const char *filename);
-TagInfo_Info *taginfo_info_create_tag_info_with_format(const char *filename, TagInfo_MediaFileType format);
-TagInfo_Info *taginfo_info_create_tag_info_from_mime(const char *filename, const char *mime_type);
+TagInfo_Info *taginfo_info_create(const char *filename);
+TagInfo_Info *taginfo_info_create_with_format(const char *filename, TagInfo_MediaFileType format);
+TagInfo_Info *taginfo_info_create_from_mime(const char *filename, const char *mime_type);
 
 
 // LOAD / SAVE

bindings/vala/libtaginfo_c.vapi

 	protected class Info
 	{
 		//creation method using filename extension
-		public static Info create_tag_info (string filename);
+		public static Info create (string filename);
 		
 		//creation method for known formats/mimetypes
-		public static Info create_tag_info_with_format (string filename, MediaFileType media_file_type);
+		public static Info create_with_format (string filename, MediaFileType media_file_type);
 		
 		//creation method using mimetype
-		public static Info create_tag_info_from_mime (string filename, string mimetype);
+		public static Info create_from_mime (string filename, string mimetype);
 		
 		public bool load ();
 		

examples/tagreader.cpp

     Info * info;
     
     //WRITING
-//    info = Info::create_tag_info("path/to/file.mp3");
+//    info = Info::create("path/to/file.mp3");
 //    
 //    if( info ) {
 //        info->set_title(TESTNAME);
 //    }
     
     //READING
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             char* title = info->get_title();

examples/tagwriter.cpp

     Info * info;
     
     //WRITING
-    info = Info::create_tag_info("path/to/file.mp3");
+    info = Info::create("path/to/file.mp3");
     
     if( info ) {
         info->set_title(TESTNAME);
     }
     
     //READING
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             TagLib::String title = info->get_title();

libtaginfo/info.cc

  * Create a Info from \a file. If \a format is given, libtaginfo will try to create 
  * an Info object for the desired \a format.
  * This is a recommended way for accessing media tags through libtaginfo.
- * create_tag_info_with_format() will return a matching Info subclass
+ * create_with_format() will return a matching Info subclass
  * \return the according Info subclass
  * \param file is the path to a media file.
  * \param format is the MediaFileType.
  */
-Info * Info::create_tag_info_with_format(const String &filename, MediaFileType format) {
+Info * Info::create_with_format(const String &filename, MediaFileType format) {
     Info * info = NULL;
     switch(format) {
         case  MEDIA_FILE_TYPE_UNKNOWN :
  * Create a Info object from a media file.
  *
  * This is a recommended way for accessing media tags through libtaginfo.
- * create_tag_info() will return a matching Info subclass
+ * create() will return a matching Info subclass
  * \return the according Info subclass
  * \param file is the path to a media file.
  *
  * This function will make use of the file extension to find out the media type
  */
-Info * Info::create_tag_info(const String &filename) {
+Info * Info::create(const String &filename) {
     MediaFileType format = MEDIA_FILE_TYPE_UNKNOWN;
     String fnex = filename.substr(filename.rfind(".") + 1);
     fnex = fnex.upper();
     else if(fnex == "XM")
         format = MEDIA_FILE_TYPE_XM; 
     
-    return Info::create_tag_info_with_format(filename, format);
+    return Info::create_with_format(filename, format);
 }
 
 /*!
  * Create a Info from \param filename . If \param mime_type is given, libtaginfo 
  * will try to create an Info object for the desired mime_type.
  * This is a recommended way for accessing media tags through libtaginfo.
- * create_tag_info_from_mime() will return a matching Info subclass
+ * create_from_mime() will return a matching Info subclass
  * \return the according Info subclass
  * \param filename is the path to a media file.
  * \param mime_type is the mime type of the media file (e.g. "audio/x-vorbis+ogg") 
  * as TagLib::String.
  */
-Info * Info::create_tag_info_from_mime(const String &filename, const String &mime_type) {
+Info * Info::create_from_mime(const String &filename, const String &mime_type) {
     MediaFileType format = MEDIA_FILE_TYPE_UNKNOWN;
     String mime = mime_type;
     
         format = MEDIA_FILE_TYPE_TTA; 
     
     
-    return Info::create_tag_info_with_format(filename, format);
+    return Info::create_with_format(filename, format);
 }
 
 

libtaginfo/taginfo.h

              * Create a Info object from a media file.
              *
              * This is a recommended way for accessing media tags through libtaginfo.
-             * create_tag_info() will return a matching Info subclass
+             * create() will return a matching Info subclass
              * \return the according Info subclass
              * \param file is the path to a media file.
              *
              * This function will make use of the file extension to find out the media type
              */
-            static Info * create_tag_info(const String &file);
+            static Info * create(const String &file);
             
             /*!
              * Create a Info from \a file. If \a format is given, libtaginfo will try to create 
              * an Info object for the desired \a format.
              * This is a recommended way for accessing media tags through libtaginfo.
-             * create_tag_info_with_format() will return a matching Info subclass
+             * create_with_format() will return a matching Info subclass
              * \return the according Info subclass
              * \param file is the path to a media file.
              * \param format is the MediaFileType.
              */
-            static Info * create_tag_info_with_format(const String &file, MediaFileType format);
+            static Info * create_with_format(const String &file, MediaFileType format);
             
             /*!
              * Create a Info from \param filename . If \param mime_type is given, libtaginfo 
              * will try to create an Info object for the desired mime_type.
              * This is a recommended way for accessing media tags through libtaginfo.
-             * create_tag_info_from_mime() will return a matching Info subclass
+             * create_from_mime() will return a matching Info subclass
              * \return the according Info subclass
              * \param filename is the path to a media file.
              * \param mime_type is the mime type of the media file (e.g. "audio/x-vorbis+ogg") 
              * as TagLib::String.
              */
-            static Info * create_tag_info_from_mime(const String &filename, const String &mime_type);
+            static Info * create_from_mime(const String &filename, const String &mime_type);
     };
 }
 #endif

tests/basic/main.cc

     
     std::string val = TESTDIR "samples/sample.flac";
     //std::cout << std::endl << "val: " << val << std::endl;
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info )
     {
         delete info;

tests/ctest_read/main.c

     TagInfo_Info *info;
     
     char val[200] = TESTDIR "samples/sample.flac";
-    info = taginfo_info_create_tag_info(val);
+    info = taginfo_info_create(val);
     if(info == NULL)
         return 1; //EXIT_FAILURE
     

tests/ctest_write/main.c

     if(cp(s, target) < 0)
         return 1; //EXIT_FAILURE
     
-    info = taginfo_info_create_tag_info(target);
+    info = taginfo_info_create(target);
     
     if(info == NULL)
         return 1; //EXIT_FAILURE
     taginfo_info_set_track_labels(info, (const char * const*)labels, labels_length);
     taginfo_info_save(info);
     taginfo_info_free(info);
-    info = taginfo_info_create_tag_info(target);
+    info = taginfo_info_create(target);
     int j = 0;
     if(taginfo_info_load(info)) {
         int out_labels_length_artist = 0;

tests/lyrics_aif/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_ape/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_asf/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_flac/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_m4a/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_mp3/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_mpc/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_ogg/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/lyrics_speex/main.cc

     
     std::string lyrics = "these are lyrics öäüß\n ldskjfslkd\n öäüß";
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(!info->set_lyrics(lyrics.c_str())) {
             delete info;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     char* read;
     if(info) {
         if(info->load()) {

tests/read_aif/main.cc

     std::ofstream  dst(target.c_str());
     dst << src.rdbuf();
      
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->artist: " << info->get_title() << std::endl;

tests/read_ape/main.cc

     std::ofstream  dst(target.c_str());
     dst << src.rdbuf();
      
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->artist: " << info->artist << std::endl;

tests/read_ext_header/main.cc

     std::string val = TESTDIR "samples/sample_v2_3_ext_header.mp3";
     
     //std::cout << std::endl << "val: " << val << std::endl;
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->title: " << info->title << std::endl;

tests/read_flac/main.cc

 int main( void ) {
     Info * info;
     std::string val = TESTDIR "samples/sample.flac";
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->title: " << info->title << std::endl;

tests/read_m4a/main.cc

     std::string val = TESTDIR "samples/sample.m4a";
     //std::cout << std::endl << "val: " << val << std::endl;
     
-    info = Info::create_tag_info(val);
+    info = Info::create(val);
     if(info) {
         if( info->load() ) {
             //std::cout << "info->title: " << info->title << std::endl;

tests/read_mp3_v1/main.cc

     std::string val = TESTDIR "samples/sample_v1_only.mp3";
     //std::cout << std::endl << "val: " << val << std::endl;
     
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info ) {
         if( info->load() ) {
             if(info->get_title() == "MP3 title") {

tests/read_mp3_v2/main.cc

     std::string val = TESTDIR "samples/sample_v2_only.mp3";
     //std::cout << std::endl << "val: " << val << std::endl;
     
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->get_title: " << info->get_title() << std::endl;

tests/read_mpc/main.cc

     std::string val = TESTDIR "samples/sample.mpc";
     //std::cout << std::endl << "val: " << val << std::endl;
     
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->title: " << info->title << std::endl;

tests/read_ogg/main.cc

     std::string val = TESTDIR "samples/sample.ogg";
     //std::cout << std::endl << "val: " << val << std::endl;
     
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info ) {
         if( info->load() ) {
             //std::cout << "2info->title: " << info->title << std::endl;

tests/read_wma/main.cc

     std::string val = TESTDIR "samples/sample.wma";
     //std::cout << std::endl << "val: " << val << std::endl;
     
-    info = Info::create_tag_info( val );
+    info = Info::create( val );
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->title: " << info->title << std::endl;

tests/write_aif/main.cc

     std::ofstream  dst(target.c_str());
     dst << src.rdbuf();
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     
     StringList labels = StringList();
     labels.append("user label1 äöüé");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if(info->load()) {
             //std::cout << "info->get_title() " << info->get_title() << std::endl;

tests/write_ape/main.cc

     dst << src.rdbuf();
     
 std::cout << "++2" << std::endl;
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
 std::cout << "++3" << std::endl;
     
     StringList labels = StringList();
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
 std::cout << "++5" << std::endl;
         if(info->load()) {

tests/write_flac/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             if(info->get_artist() == "artißt" &&

tests/write_image_ape/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image;
     if(info) {
         if(info->load()) {

tests/write_image_flac/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_image_mp3/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image;
     if(info) {
         if(info->load()) {

tests/write_image_mp4/main.cc

         return EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image;
     if(info) {
         if(info->load()) {

tests/write_image_mpc/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_image_ogg/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_image_speex/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_image_tta/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_image_wav/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_image_wma/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_image_wv/main.cc

         EXIT_FAILURE;
     }
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         Image ** imgs = new Image*[1];
         imgs[0] = img;
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     Image * read_image = NULL;
     
     if(info) {

tests/write_it/main.cc

     std::ofstream  dst(target.c_str());
     dst << src.rdbuf();
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     
     if( info ) {
         info->set_artist("artißt");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             if(info->get_title() == "titlöe" &&

tests/write_m4a/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->get_track_number() : " << info->get_track_number() << std::endl;

tests/write_mod/main.cc

     std::ofstream  dst(target.c_str());
     dst << src.rdbuf();
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     
     if( info ) {
         info->set_artist("artißt");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             if(info->get_title() == "titlöe" &&

tests/write_mp3/main.cc

     std::ofstream  dst(target.c_str());
     dst << src.rdbuf();
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     
     StringList labels = StringList();
     labels.append("user label1 äöüé");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->get_track_number(): " << info->get_track_number() << std::endl;

tests/write_mpc/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info_from_mime(target, "audio/mpc");
+    info = Info::create_from_mime(target, "audio/mpc");
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->get_copyright() : " << info->get_copyright() << std::endl;

tests/write_ogg/main.cc

     std::ofstream  dst(target.c_str());
     dst << src.rdbuf();
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     
     StringList labels = StringList();
     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info_from_mime(target, "audio/ogg");
+    info = Info::create_from_mime(target, "audio/ogg");
     if( info ) {
         if( info->load() ) {
             //std::cout << "info->get_copyright() : " << info->get_copyright() << std::endl;

tests/write_s3m/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     
     if( info ) {
         info->set_artist("artißt");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             if(info->get_title() == "titlöe") {

tests/write_speex/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             if(info->get_artist() == "artißt" &&

tests/write_tta/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             if(info->get_artist() == "artißt" &&

tests/write_wav/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info )
     {
         if( info->load() ) {

tests/write_wma/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
             if(info->get_artist() == "artißt" &&

tests/write_wv/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if(info) {
         if(info->load()) {
             if(info->get_artist() == "artißt" &&

tests/write_xm/main.cc

     labels.append("user label1 äöüé");
     labels.append("user label1 äiiüé");
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         info->set_artist("artißt");
         info->set_genre("gen re");
     delete info;
     info = NULL;
     
-    info = Info::create_tag_info(target);
+    info = Info::create(target);
     if( info ) {
         if( info->load() ) {
 //            std::cout << "info->get_comments(): " << info->get_comments() << std::endl;