PrevNextUpHome BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1

19.6. Property String Management Class

SFXProperty is the class that manages string pairs.

Although looks like the SFXHashmap class, multiple data can be duplicatedly made pairs with the same key and data are managed sequentially in the SFXProperty class.

Example 19.20. Define the SFXProperty instance

SFXProperty property;

Example 19.21. Set the elements

property.Set("unix", "??");
property.Append("macos", "CR");
property.Insert(1, "windows", "CRLF");
property.Set("unix", "LF");
property.Append("macos", "LF");

Example 19.22. Get the elements

SFXAnsiString str1 = property.Get("unix");
SFXAnsiString str2 = property.GetKey(2);
SFXAnsiString str3 = property.GetValue(2);

Example 19.23. Get the number of elements

SInt32 n = property.GetSize();

Example 19.24. Delete the elements

property.Remove(2);
property.Clear("macos");
property.Clear();