Beispiel #1
0
        public void writeConfigLong(string _section, string _key, long _value)
        {
            TsConfig config = TsConfig.getInstance();

            if (null != config)
            {
                config.writeLong(_section, _key, _value);
            }
        }
Beispiel #2
0
        public void deleteConfigSection(string _section)
        {
            TsConfig config = TsConfig.getInstance();

            if (null != config)
            {
                config.deleteSection(_section);
            }
        }
Beispiel #3
0
        public Int32 readConfigLong(string _section, string _key, long _default_value = 0)
        {
            TsConfig config = TsConfig.getInstance();

            if (null != config)
            {
                return(config.readLong(_section, _key, _default_value));
            }
            return(0);
        }
Beispiel #4
0
        public string readConfigString(string _section, string _key, string _default_value = "")
        {
            TsConfig config = TsConfig.getInstance();

            if (null != config)
            {
                return(config.readString(_section, _key, _default_value));
            }
            return("");
        }
Beispiel #5
0
            public void deInit()
            {
                if (null != TsConfig.getInstance())
                {
                    TsConfig.releaseInstance();
                }

                if (null != TsLog.getInstance())
                {
                    TsLog.releaseInstance();
                }
            }