[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System/Configuration AppSettingsRead
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System/Configuration AppSettingsReader.cs,NONE,1.1 DictionarySectionHandler.cs,NONE,1.1IgnoreSectionHandler.cs,NONE,1.1 NameValueFileSectionHandler.cs,NONE,1.1NameValueSectionHandler.cs,NONE,1.1 SingleTagSectionHandler.cs,NONE,1.1 ConfigurationSettings.cs,1.1,1.2 Makefile,1.1,1.2 |
Date: |
Sun, 25 May 2003 03:13:45 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System/Configuration
In directory subversions:/tmp/cvs-serv26360/System/Configuration
Modified Files:
ConfigurationSettings.cs Makefile
Added Files:
AppSettingsReader.cs DictionarySectionHandler.cs
IgnoreSectionHandler.cs NameValueFileSectionHandler.cs
NameValueSectionHandler.cs SingleTagSectionHandler.cs
Log Message:
Missing classes in the "System.Configuration" namespace.
--- NEW FILE ---
/*
* AppSettingsReader.cs - Implementation of the
* "System.Configuration.AppSettingsReader" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Configuration
{
#if !ECMA_COMPAT
using System;
public class AppSettingsReader
{
// Constructor.
public AppSettingsReader() {}
// Get a specific application setting value.
[TODO]
public Object GetValue(String key, Type type)
{
if(key == null)
{
throw new ArgumentNullException("key");
}
if(type == null)
{
throw new ArgumentNullException("type");
}
// TODO
return null;
}
}; // class AppSettingsReader
#endif // !ECMA_COMPAT
}; // namespace System.Configuration
--- NEW FILE ---
/*
* DictionarySectionHandler.cs - Implementation of the
* "System.Configuration.DictionarySectionHandler" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Configuration
{
#if !ECMA_COMPAT
using System;
using System.Xml;
public class DictionarySectionHandler : IConfigurationSectionHandler
{
// Constructor.
public DictionarySectionHandler() {}
// Get the name of the key attribute tag.
protected virtual String KeyAttributeName
{
get
{
return "key";
}
}
// Get the name of the value attribute tag.
protected virtual String ValueAttributeName
{
get
{
return "value";
}
}
#if SECOND_PASS
// Create a configuration object for a section.
[TODO]
Object Create(Object parent, Object configContext, XmlNode section)
{
// TODO
return null;
}
#endif // SECOND_PASS
}; // class DictionarySectionHandler
#endif // !ECMA_COMPAT
}; // namespace System.Configuration
--- NEW FILE ---
/*
* IgnoreSectionHandler.cs - Implementation of the
* "System.Configuration.IgnoreSectionHandler" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Configuration
{
#if !ECMA_COMPAT
using System;
using System.Xml;
public class IgnoreSectionHandler : IConfigurationSectionHandler
{
// Constructor.
public IgnoreSectionHandler() {}
#if SECOND_PASS
// Create a configuration object for a section.
Object Create(Object parent, Object configContext, XmlNode section)
{
// Nothing to do here - we are ignoring the
section.
return null;
}
#endif // SECOND_PASS
}; // class IgnoreSectionHandler
#endif // !ECMA_COMPAT
}; // namespace System.Configuration
--- NEW FILE ---
/*
* NameValueFileSectionHandler.cs - Implementation of the
* "System.Configuration.NameValueFileSectionHandler" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Configuration
{
#if !ECMA_COMPAT
using System;
using System.Xml;
public class NameValueFileSectionHandler : IConfigurationSectionHandler
{
// Constructor.
public NameValueFileSectionHandler() {}
#if SECOND_PASS
// Create a configuration object for a section.
[TODO]
Object Create(Object parent, Object configContext, XmlNode section)
{
// TODO
return null;
}
#endif // SECOND_PASS
}; // class NameValueFileSectionHandler
#endif // !ECMA_COMPAT
}; // namespace System.Configuration
--- NEW FILE ---
/*
* NameValueSectionHandler.cs - Implementation of the
* "System.Configuration.NameValueSectionHandler" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Configuration
{
#if !ECMA_COMPAT
using System;
using System.Xml;
public class NameValueSectionHandler : IConfigurationSectionHandler
{
// Constructor.
public NameValueSectionHandler() {}
// Get the name of the key attribute tag.
protected virtual String KeyAttributeName
{
get
{
return "key";
}
}
// Get the name of the value attribute tag.
protected virtual String ValueAttributeName
{
get
{
return "value";
}
}
#if SECOND_PASS
// Create a configuration object for a section.
[TODO]
Object Create(Object parent, Object configContext, XmlNode section)
{
// TODO
return null;
}
#endif // SECOND_PASS
}; // class NameValueSectionHandler
#endif // !ECMA_COMPAT
}; // namespace System.Configuration
--- NEW FILE ---
/*
* SingleTabSectionHandler.cs - Implementation of the
* "System.Configuration.SingleTabSectionHandler" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Configuration
{
#if !ECMA_COMPAT
using System;
using System.Xml;
public class SingleTabSectionHandler : IConfigurationSectionHandler
{
// Constructor.
public SingleTabSectionHandler() {}
#if SECOND_PASS
// Create a configuration object for a section.
[TODO]
Object Create(Object parent, Object configContext, XmlNode section)
{
// TODO
return null;
}
#endif // SECOND_PASS
}; // class SingleTabSectionHandler
#endif // !ECMA_COMPAT
}; // namespace System.Configuration
Index: ConfigurationSettings.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System/Configuration/ConfigurationSettings.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ConfigurationSettings.cs 1 Feb 2003 06:09:38 -0000 1.1
--- ConfigurationSettings.cs 25 May 2003 07:13:43 -0000 1.2
***************
*** 38,41 ****
--- 38,42 ----
// Get a configuration object for a specific section.
+ [TODO]
public static Object GetConfig(String sectionName)
{
Index: Makefile
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Configuration/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Makefile 1 Feb 2003 06:09:38 -0000 1.1
--- Makefile 25 May 2003 07:13:43 -0000 1.2
***************
*** 2,3 ****
--- 2,4 ----
all:
(cd ..;make)
+ (cd ..;make phase-two)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System/Configuration AppSettingsReader.cs,NONE,1.1 DictionarySectionHandler.cs,NONE,1.1IgnoreSectionHandler.cs,NONE,1.1 NameValueFileSectionHandler.cs,NONE,1.1NameValueSectionHandler.cs,NONE,1.1 SingleTagSectionHandler.cs,NONE,1.1 ConfigurationSettings.cs,1.1,1.2 Makefile,1.1,1.2,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: ml-pnet ChangeLog,1.1.1.1,1.2 configure.in,1.1.1.1,1.2
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.926,1.927
- Previous by thread:
[Dotgnu-pnet-commits] CVS: ml-pnet ChangeLog,1.1.1.1,1.2 configure.in,1.1.1.1,1.2
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.926,1.927
- Index(es):