Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
JSUIosBase.h
Go to the documentation of this file.
1#ifndef JSUIOSBASE_H_
2#define JSUIOSBASE_H_
3
4#include "dolphin/types.h"
5
7 JSUStreamSeekFrom_SET = 0, // absolute
8 JSUStreamSeekFrom_CUR = 1, // relative
9 JSUStreamSeekFrom_END = 2, // relative to end
10};
11
17public:
18 enum EIoState {
21 };
22
23 JSUIosBase() { mState = false; }
24
25 virtual ~JSUIosBase() {}
26
27 bool isGood() const { return mState == 0; }
28 void clrState(EIoState state) { mState &= ~state; }
29 void setState(EIoState state) { mState |= state; }
30
31private:
32 bool mState;
33}; // Size = 0x8
34
35#endif
JSUStreamSeekFrom
Definition JSUIosBase.h:6
@ JSUStreamSeekFrom_END
Definition JSUIosBase.h:9
@ JSUStreamSeekFrom_SET
Definition JSUIosBase.h:7
@ JSUStreamSeekFrom_CUR
Definition JSUIosBase.h:8
Definition JSUIosBase.h:16
bool isGood() const
Definition JSUIosBase.h:27
bool mState
Definition JSUIosBase.h:32
EIoState
Definition JSUIosBase.h:18
@ IOS_STATE_1
Definition JSUIosBase.h:19
@ IOS_STATE_2
Definition JSUIosBase.h:20
void setState(EIoState state)
Definition JSUIosBase.h:29
virtual ~JSUIosBase()
Definition JSUIosBase.h:25
void clrState(EIoState state)
Definition JSUIosBase.h:28
JSUIosBase()
Definition JSUIosBase.h:23