Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStorage.AddTagName method

Filter:

Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    

Overview

Adds a global named tag.

Declaration

[Pascal]
    procedure AddTagName( TagID : Word; TagValueType : Word; const TagName : TSolFSString );
    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[Plain C]
    long _stdcall StorageAddTagName( Handle Storage, Word TagID, Word TagValueType, PWideChar TagName );

[C++ (DLL/Lib)]
    void AddTagName( unsigned short TagID, SolFSTagValueType TagValueType, const PWideChar TagName );

[C++ (VCL)]
    void __fastcall AddTagName( Word TagID, Word TagValueType, const TSolFSString TagName );

[C++ (.NET)]
    void AddTagName( int tagID, SolFSTagValueType tagValueType, String *tagName );

[C#]
    void AddTagName( int tagID, SolFS.SolFSTagValueType tagValueType, string tagName );

[VB.NET]
    Sub AddTagName( ByVal tagID As Integer, ByVal tagValueType As SolFS.SolFSTagValueType, ByVal tagName As String )

[Java]
    void addTagName( int tagID, TagTypes tagValueType, String tagName);

Parameters

  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • TagID - tag unique ID, must be in range of [0x8000..0xCFFF]
  • TagValueType - Specifies data type of the tag value
  • TagName - Name of the tag

Possible tag types:

Return value

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.

Description

Use this method to create a global named tag and set it's data type. TagID can be set to 0 - in this case SolFS will choose an ID automatically.

See also

DeleteTagName     GetTagName    

Back to top