<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License.  You may
* obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
***************************************************************/

#ifndef _NETWORK_ADAPTER_WINDOWS_H_
#define _NETWORK_ADAPTER_WINDOWS_H_

/***************************************************************
 * Headers
 ***************************************************************/

#include "network_adapter.h"
#include "condor_constants.h"
#include "setup_api_dll.h"
#include <iptypes.h>

/***************************************************************
 * WindowsNetworkAdapter class
 ***************************************************************/

class WindowsNetworkAdapter : NetworkAdapterBase
{

public:

	/** @name Instantiation.
	*/
	//@{

    /// Constructor
	WindowsNetworkAdapter () throw ();

	/// Constructor
	WindowsNetworkAdapter ( LPCSTR ip_addr, unsigned int ) throw ();

	/// Destructor
	virtual ~WindowsNetworkAdapter () throw (); 

	//@}

	/** @name Device properties.
	*/
	//@{

	/** Returns the adapter's hardware address
		@return a string representation of the addapter's hardware
        address
	*/
	const char* hardwareAddress (void) const;

    /** Returns the adapter's IP address as a string
		@return the adapter's's IP address
	*/
	virtual unsigned ipAddress (void) const;
    
    /** Returns the adapter's hardware address
		@return a string representation of the subnet mask
	*/
	const char* subnet (void) const;

    /** Returns the adapter's hardware address
		@return a string representation of the addapter's hardware
        address
	*/
	bool wakeAble (void) const;

    /** Checks that the adapter actually exists
        @returns true if the adapter exists on the machine; 
        otherwise, false.
	    */
	bool exists () const;

    /** Initialize the internal structures (can be called multiple
        times--such as in the case of a reconfiguration) <commit_msg>Should now work with changes I made to createNetworkAdapter() Completely untested, but should work.<commit_after>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License.  You may
* obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
***************************************************************/

#ifndef _NETWORK_ADAPTER_WINDOWS_H_
#define _NETWORK_ADAPTER_WINDOWS_H_

/***************************************************************
 * Headers
 ***************************************************************/

#include "network_adapter.h"
#include "condor_constants.h"
#include "setup_api_dll.h"
#include <iptypes.h>

/***************************************************************
 * WindowsNetworkAdapter class
 ***************************************************************/

class WindowsNetworkAdapter : NetworkAdapterBase
{

public:

	/** @name Instantiation.
	*/
	//@{

    /// Constructor
	WindowsNetworkAdapter () throw ();

	/// Constructor
	WindowsNetworkAdapter ( LPCSTR ip_addr, unsigned int ) throw ();

	/// Constructor -- not implemented
	WindowsNetworkAdapter ( const char * /*name*/ ) throw () { };

	/// Destructor
	virtual ~WindowsNetworkAdapter () throw (); 

	//@}

	/** @name Device properties.
	*/
	//@{

	/** Returns the adapter's hardware address
		@return a string representation of the addapter's hardware
        address
	*/
	const char* hardwareAddress (void) const;

    /** Returns the adapter's IP address as a string
		@return the adapter's's IP address
	*/
	virtual unsigned ipAddress (void) const;

    /** Returns the adapter's hardware address
		@return a string representation of the subnet mask
	*/
	const char* subnet (void) const;

    /** Returns the adapter's hardware address
		@return a string representation of the addapter's hardware
        address
	*/
	bool wakeAble (void) const;

    /** Checks that the adapter actually exists
        @returns true if the adapter exists on the machine; 
        otherwise, false.
	    */
	bool exists () const;

    /** Initialize the internal structures (can be called multiple
        times--such as in the case of a reconfiguration) 
{'fraction_non_alphanumeric': 0.22190692395005676, 'fraction_numerical': 0.004540295119182747, 'mean_word_length': 4.271186440677966, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3861594', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1274, 'n_words': 497}