¹ØÓÚXMLÖÐ×Ö½ÚдÈëÁ÷×Ö¶ÎʱµÄ˵Ã÷
·½·¨Ò»£º
²ÉȡͨÓõÄbase64±àÂ뷽ʽ£¬È¡Ê±½âÂë´æʱ¼ÓÂë¡£
ëÀÏʦÌṩÁËÍêÕûµÄ±àÂë´úÂ룬ÇÒЧÂʺܸߡ£
unit Base64;
interface
uses SysUtils, Classes;
type
{$IFDEF UNICODE}
Base64String = AnsiString;
{$ELSE}
Base64String = string;
{$ENDIF}
// °´Ô´³¤¶ÈSourceSize·µ»ØBase64±àÂëËùÐ軺³åÇø×Ö½ÚÊý
function Base64EncodeBufSize(SourceSize: Integer): Integer;
// »ñÈ¡SourecµÄBase64±àÂ룬Base64Buf±ØÐëÓÐ×ã¹»³¤¶È¡£·µ»Øʵ¼Ê±àÂë×Ö½ÚÊý
function Base64Encode(const Source; SourceSize: Integer; var Base64Buf): Integer; overload;
// ½«Source±àÂëΪBase64×Ö·û´®·µ»Ø `
function Base64Encode(const Source; SourceSize: Integer): Base64String; overload;
// ½«Source´ÓStartPos¿ªÊ¼µÄSize³¤¶ÈµÄÄÚÈÝÔ´±àÂëΪBase64£¬Ð´ÈëÁ÷Dest¡£
// Size=0 ±íʾһֱ±àÂëµ½Îļþβ
procedure Base64Encode(Source, Dest: TStream; StartPos: Int64 = 0; Size: Int64 = 0); overload;
// °Ñ×Ö·û´®Str±àÂëΪBase64×Ö·û´®·µ»Ø
{$IFDEF UNICODE}
function StrToBase64(const Str: AnsiString): Base64String; overload;
function StrToBase64(const Str: string): Base64String; overload;
{$ELSE}
function StrToBase64(const Str: string): Base64String;
{$ENDIF}
// °´¸ø¶¨µÄ±àÂëÔ´SourceºÍ³¤¶ÈSourceSize¼ÆËã²¢·µ»Ø½âÂ뻺³åÇøËùÐè×Ö½ÚÊý
function Base64DecodeBufSize(const Base64Source; SourceSize: Integer): Integer;
// ½«Base64±àÂëÔ´Base64Source½âÂ룬Buf±ØÐëÓÐ×ã¹»³¤¶È¡£·µ»Øʵ¼Ê½âÂë×Ö½ÚÊý
function Base64Decode(const Base64Source; SourceSize: Integer; var Buf): Integer; overload;
// ½«Source´ÓStartPos¿ªÊ¼µÄSize³¤¶ÈµÄBase64±àÂëÄÚÈݽâÂ룬дÈëÁ÷Dest¡£
// Size=0 ±íʾһֱ½âÂëµ½Îļþβ
procedure Base64Decode(Source, Dest: TStream; StartPos: Int64 = 0; Size: Int64 = 0); overload;
// ½«Base64±àÂëÔ´Base64Source½âÂëΪ×Ö·û´®·µ»Ø
function Base64Decode(const Base64Source; SourceSize: Integer): string; overload;
// °ÑBase64×Ö·û´®Base64Str½âÂëΪ×Ö·û´®·µ»Ø
function Base64ToStr(const Base64Str: Ba
Ïà¹ØÎĵµ£º
Internet µÄÓ¦ÓÃÕýÔÚ²»¶ÏµØÀ©´ó£¬µ«ÎÒÃÇµÄ Internet ±à³Ì·½Ê½»¹´¦ÓÚʯÆ÷ʱ´ú¡£Internet Óû§¾ÍÏñÀÏʽÖ÷»úµÄ·ÖʱÖÕ¶ËÉϵÄÓû§Ò»Ñù£¬ËûÃÇ´ÓÒ»¸öÊܱ£»¤µÄ×ÊÔ´ÇëÇóÐÅÏ¢£¬È»ºóµÈ´ý»ØÓ¦¡£Äã´ÓÕýÔÚä¯ÀÀµÄ Internet Õ¾µãÉϽÓÊÕµÄÐÅÏ¢ÓÉËüÏ£ÍûÌṩ¸øÄãµÄ¡¢»ùÓÚ HTML µÄÐÅÏ¢×é³ÉµÄ¡£
¡¡¡¡µ«ÊÇ£¬Í¬Ô¶³Ì Web Õ¾µã½øÐн»»¥Ê½²Ù×÷ÊDz»ÊÇ ......
Èç¹û¶Ô½çÃæÃÀ¹Û³ÌÐò±È½Ï¸ß£¬ÊÖд´úÂëÊDz»¿É±ÜÃâµÄ¡£
µ«Èç¹û×öµÄÊÇһЩÏñÖ»ÊÇΪÁËÏÔʾ¡¢¿ØÖÆÖ®ÀàµÄ³ÌÐò£¬¿ÉÄܸü¿ìµÄ°Ñ³ÌÐòµ·¹Ä³öÀ´¾ÍºÃÁË¡£
wxwidgets
ÓÐÕâÑùµÄÒ»¸ö¹¦ÄÜ£¬¾ÍÊÇÄÜÓÃxmlд³É½çÃæ¾ÍÄÜÏÔʾ
±à¼xrcµÄ¹¤¾ßÊÇwxformbuilder,¿ªÔ´Ãâ·ÑµÄ£¬Ò²×ã¹»ÓÃÁË£¬ÎÒÒ»¿ªÊ¼Ã»ÕÒµ½Ôõô
Éú³Éxrc,ºóÀ´Ä³´ÎżȻ¿´µ½ÁËÏÂÃæ....ÔÀ ......
µ½http://sourceforge.net/projects/tinyxml/ÏÂÔØTinyXmlµÄ¹Ù·½Àý×Ó£¬
ÀïÃæÓкü¸¸öÎļþ£¬ÎÒÃÇ°Ñ
tinyxml.h
tinystr.h
tinystr.cpp
tinyxml.cpp
tinyxmlparser.cpp
tinyxmlerror.cpp
Õ⼸¸öÎļþ°üº¬µ½ÎÒÃǵŤ³ÌÄÚ¡£
Òª°üº¬Í·Îļþ #include "tinyxml.h"
ÕâÓþͿÉÒÔ¿ªÊ¼Ê¹ÓÃtinyxml¿ªÊ¼²Ù×÷xmlÎļþÁË£¬¾ßÌåµÄ²Ù×÷· ......
¾³£¼ûXMLÐòÁл¯µÄÎÄÕ£¬¶Ô¸ÃÐòÁл¯·½Ê½²¢²»ÊÇÌ«ÏþµÃ£¬¿´ÁËMSDNºÍһЩ×ÊÁϺóÓÐÁË´óÖµÄÁ˽⣬´óµÀÀí½²²»³öÀ´£¬ÉÏ ´úÂëÏÈ£º
·½Ê½Ò» ͨ¹ýXmlSerializeÖ±½ÓÐòÁл¯£º
Class BeSerialized
{
//ij×Ö¶Î
public int someFiled;
//¹«¹²ÀàµÄÒ»¸ö¿ÉÐòÁл¯µÄÊôÐÔ
private bool serialme;
public bool SerialMe
{
......