You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: OS_class.m
    path of file: ./repos/paramonte/src/interface/MATLAB/paramonte/kernel
    
    the code of the file until where you have to start completion: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%
%%%%   MIT License
%%%%
%%%%   ParaMonte: plain powerful parallel Monte Carlo library.
%%%%
%%%%   Copyright (C) 2012-present, The Computational Data Science Lab
%%%%
%%%%   This file is part of the ParaMonte library.
%%%%
%%%%   Permission is hereby granted, free of charge, to any person obtaining a 
%%%%   copy of this software and associated documentation files (the "Software"), 
%%%%   to deal in the Software without restriction, including without limitation 
%%%%   the rights to use, copy, modify, merge, publish, distribute, sublicense, 
%%%%   and/or sell copies of the Software, and to permit persons to whom the 
%%%%   Software is furnished to do so, subject to the following conditions:
%%%%
%%%%   
    
function queryOS(self)
            
            FUNCTION_NAME       = self.CLASS_NAME + "@queryOS()";
            
            self.Err.occurred   = false;
            self.Err.msg        = "";

            if ispc
                self.name           = "WINDOWS";
                self.isWindows      = true;
                self.slash          = '\';
            elseif ismac
                self.name           = "MAC";
                self.isWindows      = false;
                self.slash          = "/";
            elseif isunix 
                self.name           = "UNIX";
                self.isWindows      = false;
                self.slash          = "/";
            else
                self.name           = "";
                self.isWindows      = false;
                self.Err.occurred   = false;
                self.Err.msg        = FUNCTION_NAME + ": Unknown error occurred while attempting to read the Operating System's name";
            end



            
            % [self.name, self.Err]   = EnvVar_class.getEnvVar("OS");
            
            % if self.Err.occurred
                % self.Err.msg    = FUNCTION_NAME + ": Error occurred while querying OS type." + newline + self.Err.msg;
                % self.name       = "";
                % return
            % end
            
            % self.name       = strtrim(self.name);
            
            % if length(self.name) >= 7
                % if lower(self.name(1:7)) == "windows"
                    % self.isWindows  = true;
                    % self.slash      = "\";
                % end