DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DbDataReader.h
Go to the documentation of this file.
1#pragma once
2#include "Common.h"
3#include "System/Object.h"
4#include "System/String.h"
5
6namespace DotNetDupe {
7 namespace System {
8 namespace Data {
9 namespace Common {
10
20 public:
22 DbDataReader() = default;
23
25 ~DbDataReader() override = default;
26
29 virtual bool Read() = 0;
30
35 virtual DotNetDupe::System::String GetString(int iOrdinal) = 0;
36
41 virtual int GetInt32(int iOrdinal) = 0;
42
47 virtual double GetDouble(int iOrdinal) = 0;
48
52 virtual bool IsDBNull(int iOrdinal) = 0;
53
56 virtual int GetFieldCount() const = 0;
57
61 virtual DotNetDupe::System::String GetName(int iOrdinal) = 0;
62
67 virtual int GetOrdinal(const DotNetDupe::System::String& sName) = 0;
68
73
77 virtual DotNetDupe::System::String operator[](int iOrdinal) = 0;
78 };
79
80 }
81 }
82 }
83}
Defines common cross-platform macros, export decorators, and fundamental types.
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
virtual int GetInt32(int iOrdinal)=0
Gets the value of the specified column as a 32-bit signed integer.
~DbDataReader() override=default
Virtual destructor for polymorphic cleanup.
virtual bool IsDBNull(int iOrdinal)=0
Gets a value that indicates whether the column contains non-existent or missing values.
virtual int GetOrdinal(const DotNetDupe::System::String &sName)=0
Gets the column ordinal, given the name of the column.
virtual DotNetDupe::System::String operator[](int iOrdinal)=0
Gets the value of the specified column by ordinal index.
virtual double GetDouble(int iOrdinal)=0
Gets the value of the specified column as a double-precision floating point number.
DbDataReader()=default
Initializes a new instance of the DbDataReader class.
virtual DotNetDupe::System::String operator[](const DotNetDupe::System::String &sName)=0
Gets the value of the specified column by column name.
virtual int GetFieldCount() const =0
Gets the number of columns in the current row.
virtual bool Read()=0
Advances the reader to the next record in the result set.
virtual DotNetDupe::System::String GetString(int iOrdinal)=0
Gets the value of the specified column as a string.
virtual DotNetDupe::System::String GetName(int iOrdinal)=0
Gets the name of the column, given the zero-based column ordinal.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74