From: <nik...@al...> - 2001-05-14 23:20:03
|
d=E9ja, je pense serieusement a migrer sur le serveur http de SF, vu qu'e= n fait, il propose au minimum 100Mo d'espace libre + php + base de donn=E9e mysql =E0 la demande. le hic, c qu'il faut uploader sous ssh, et que l'interface SCP du client = ssh de Toche est assez relou ... faudrais essayer putty : http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html il parait que c plus sympache pour ceux que =E7a interesse, voila l'@ du ftp : use...@sh...:/home/groups/o/or/orion3d/htdocs [remplacer htdocs par cgi-bin pour les cgi] sinon, pour l'export des fichiers, suite a la remaque de Toche, je me sui= s dit que c t tres con de conserver les headers, donc on va faire du 100% les classes se serializent toutes seulent ;) la methode a suivre pour la suite (ksp et cie) : - j'ai ecrit une classe OR_File au dessus de FILE* pour creer des operate= urs << et >>. j'ai defini les operateurs pour tous les types de base (OR_Float, Or_U32 ...), + pour la classe OR_Serializable : y'a rien a ecrire, il suffit de definir builtofile/buildfromfile :) - par exemple pour la classe OR_Blo (c un exemple pas complet) il suffit d'ecrire : class OR_Blo : public OR_Serializable { private: OR_U32 Youhou; OR_Name Nom; /* j'ai aussi cr=E9=E9 un type OR_Name =3D=3D char[NAME_= LENGTH]*/ OR_Bli* Bli; /* cet classe herite aussi de OR_Serializable : on peu utiliser<< & >>*/ public: virtual void BuildToFile(OR_File* file) { file << Youhou << Nom << Bli; } virtual void BuildFromFile(OR_File* file) { file >> Youhou >> Nom >> Bli; } }; nikel, non ?? le code de l'export de .act va prendre un coup de jeune :) gabriel |