mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added 'ValueTypes' Single and Double Added some components in the new System::Net namespace Added the Console class, which can be used to output text to the screen Updated a bunch of structs to include the IComparable and IEquatable interfaces, and inheritance from Object to allow better interoperability between container classes and other types Replaced all exception handling code with a report to stdout.txt - this will, I hope, eventually be reversed, but as of yet, there is no support for exceptions. BEWARE! Even though all libraries correctly compile, you cannot use any class/structure that inherits from a template class, because stupid G++ wants to include exception handling for each template.
72 lines
2.1 KiB
C++
72 lines
2.1 KiB
C++
/********************************************************
|
|
* TextWriter.h *
|
|
* *
|
|
* XFX TextWriter definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _SYSTEM_IO_TEXTWRITER_
|
|
#define _SYSTEM_IO_TEXTWRITER_
|
|
|
|
#include <System/Interfaces.h>
|
|
#include <System/Text/Encoding.h>
|
|
|
|
namespace System
|
|
{
|
|
namespace IO
|
|
{
|
|
/// <summary>
|
|
/// Represents a writer that can write a sequential series of characters. This class is abstract.
|
|
/// </summary>
|
|
class TextWriter : public IDisposable, virtual Object
|
|
{
|
|
private:
|
|
IFormatProvider* InternalFormatProvider;
|
|
static const char* InitialNewLine;
|
|
|
|
protected:
|
|
char CoreNewLine[];
|
|
|
|
TextWriter();
|
|
TextWriter(IFormatProvider* provider);
|
|
TextWriter(const TextWriter &obj);
|
|
|
|
virtual void Dispose(bool disposing);
|
|
|
|
public:
|
|
virtual System::Text::Encoding getEncoding()=0;
|
|
virtual IFormatProvider* getFormatProvider();
|
|
char* NewLine;
|
|
static const TextWriter Null;
|
|
|
|
virtual void Close();
|
|
void Dispose();
|
|
virtual void Flush();
|
|
virtual void Write(bool value);
|
|
virtual void Write(char value);
|
|
virtual void Write(char buffer[]);
|
|
virtual void Write(char buffer[], int index, int count);
|
|
virtual void Write(double value);
|
|
virtual void Write(float value);
|
|
virtual void Write(int value);
|
|
virtual void Write(long long value);
|
|
virtual void Write(const char* value);
|
|
virtual void Write(uint value);
|
|
virtual void Write(ulong value);
|
|
virtual void WriteLine();
|
|
virtual void WriteLine(bool value);
|
|
virtual void WriteLine(char value);
|
|
virtual void WriteLine(char buffer[]);
|
|
virtual void WriteLine(char buffer[], int index, int count);
|
|
virtual void WriteLine(double value);
|
|
virtual void WriteLine(float value);
|
|
virtual void WriteLine(int value);
|
|
virtual void WriteLine(long long value);
|
|
virtual void WriteLine(const char* value);
|
|
virtual void WriteLine(uint value);
|
|
virtual void WriteLine(ulong value);
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_IO_TEXTWRITER_
|