⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swarm.defobj.symbol.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>Symbol</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.53"><LINKREL="HOME"TITLE="Documentation Set for Swarm 2.1.1"HREF="set.html"><LINKREL="UP"TITLE="Defobj Library"HREF="swarm.defobj.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="SetInitialValue"HREF="swarm.defobj.setinitialvalue.protocol.html"><LINKREL="NEXT"TITLE="Warning"HREF="swarm.defobj.warning.protocol.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Documentation Set for Swarm 2.1.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="swarm.defobj.setinitialvalue.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference I. Defobj Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.defobj.warning.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.DEFOBJ.SYMBOL.PROTOCOL">Symbol</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN4694"></A><H2>Name</H2>Symbol&nbsp;--&nbsp; Object defined as a distinct global id constant.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN4697"></A><H2>Description</H2><P> A Symbol is an object created with a fixed name.  It has no behavior except to get the name with which it was created.  A Symbol is typically used to define unique id values which are assigned to global constant names.  These names, capitalized according to the recommended convention for global object constants, are used by some libraries as flags or enumerated value codes in arguments or return values of messages.</P><P> Ordinarily, a symbol is created with its character string name matching the global id constant to which it is assigned.  These global program constants can then provide a minimal level of self documentation as objects.  Subtypes of Symbol can extend the base of a named, global id constant to establish further components of a global, constant definition.</P><P> A symbol is fully creatable using standard Create messages.  A character string name must be supplied for any new symbol; there is no default.  Symbol inherits the getName message, which returns the symbol name.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4702"></A><H2>Protocols adopted by Symbol</H2><P> <AHREF="swarm.defobj.create.protocol.html">Create</A> <AHREF="swarm.defobj.getname.protocol.html">GetName</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4708"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN4710"></A><H3>Phase: Creating</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.DEFOBJ.SYMBOL.METHOD.PC.M36"></A><P></P>+ <BCLASS="FUNCPROTOTYPE">create:</B> (id &lt;Zone&gt;)<VARCLASS="PDPARAM">aZone</VAR> <BCLASS="FUNCPROTOTYPE">setName:</B> (const char *)<VARCLASS="PDPARAM">name</VAR> <BR> create:setName: is a combination message defined as a caller convenience.  See combination messages for a summary of conventions on combination messages.<P></P></DIV></LI></UL></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4724"></A><H2>Macros</H2><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.DEFOBJ.SYMBOL.MACRO.DEFSYMBOL"></A><P></P><P><CODE><BCLASS="FSFUNC">defsymbol</B>(<VARCLASS="PDPARAM">name</VAR>)</CODE></P><BR> macro used to create and initialize a symbol<P></P></DIV></LI></UL></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="swarm.defobj.setinitialvalue.protocol.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.defobj.warning.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">SetInitialValue</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.defobj.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Warning</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -