/******************************************************************************
I2CLINE Header file

Michael Simmons
Master Project:
Date Created:	25 Oct 2008
Date Modified:	25 Oct 2008

*******************************************************************************

Description:
	The I2CLINE is designed to handle the communication from the 
gumstix to the
	other devices that are connected to the robostix.

******************************************************************************/
#ifndef I2CLINE_H
#define I2CLINE_H

#include <iostream>
#include <fcntl.h>
#include <sys/ioctl.h>

using namespace std;

//const char *i2cFileName = "/dev/i2c-0";

class I2cLine  // Singleton design pattern
{
  private:
    static I2cLine *m_init;
    static int i2cHandle;
//    char *i2cFileName;

    I2cLine();

    I2cLine( const I2cLine & );
    const I2cLine &operator = ( const I2cLine & );

  public:
    static I2cLine *init();
    int getHandle();

};

#endif

